Input Events"

From Documentation
m
m (correct highlight (via JWB))
 
Line 21: Line 21:
 
| Event: <javadoc>org.zkoss.zk.ui.event.InputEvent</javadoc>
 
| Event: <javadoc>org.zkoss.zk.ui.event.InputEvent</javadoc>
  
Denotes that user is changing the content of an input component. Notice that the component's content (at the server) won't be changed until <tt>onChange</tt> is received. Thus, you have to invoke the <tt>getValue</tt> method in the <tt>InputEvent</tt> class to retrieve the temporary value.
+
Denotes that user is changing the content of an input component. Notice that the component's content (at the server) won't be changed until <code>onChange</code> is received. Thus, you have to invoke the <code>getValue</code> method in the <code>InputEvent</code> class to retrieve the temporary value.
  
 
|-
 
|-
Line 28: Line 28:
 
| Event: <javadoc>org.zkoss.zk.ui.event.SelectionEvent</javadoc>
 
| Event: <javadoc>org.zkoss.zk.ui.event.SelectionEvent</javadoc>
  
Denotes that user is selecting a portion of the text of an input component. You can retrieve the start and end position of the selected text by using the <tt>getStart</tt> and <tt>getEnd</tt> methods.
+
Denotes that user is selecting a portion of the text of an input component. You can retrieve the start and end position of the selected text by using the <code>getStart</code> and <code>getEnd</code> methods.
  
 
|-
 
|-
Line 39: Line 39:
 
Denotes a component obtained focus.
 
Denotes a component obtained focus.
  
Please note that event listeners execute at the server, so the focus at the client might have changed when the event listener for <tt>onFocus</tt> is called.
+
Please note that event listeners execute at the server, so the focus at the client might have changed when the event listener for <code>onFocus</code> is called.
  
 
|-
 
|-
Line 50: Line 50:
 
Denotes a component lost focus.
 
Denotes a component lost focus.
  
Please note that event listeners execute at the server, so the focus at the client might have changed when the event listener for <tt>onBlur</tt> is called.
+
Please note that event listeners execute at the server, so the focus at the client might have changed when the event listener for <code>onBlur</code> is called.
  
 
|}
 
|}
  
 
{{ ZKDevelopersGuidePageFooter}}
 
{{ ZKDevelopersGuidePageFooter}}

Latest revision as of 10:45, 19 January 2022

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Event Name
Components
Description
onChange textbox datebox decimalbox

doublebox intbox combobox bandbox

Event: InputEvent

Denotes the content of an input component has been modified by the user.

onChanging textbox datebox decimalbox

doublebox intbox combobox bandbox

Event: InputEvent

Denotes that user is changing the content of an input component. Notice that the component's content (at the server) won't be changed until onChange is received. Thus, you have to invoke the getValue method in the InputEvent class to retrieve the temporary value.

onSelection textbox datebox decimalbox doublebox intbox combobox bandbox Event: SelectionEvent

Denotes that user is selecting a portion of the text of an input component. You can retrieve the start and end position of the selected text by using the getStart and getEnd methods.

onFocus textbox datebox decimalbox doublebox intbox combobox bandbox

button toolbarbutton checkbox radio

Event: Event

Denotes a component obtained focus.

Please note that event listeners execute at the server, so the focus at the client might have changed when the event listener for onFocus is called.

onBlur textbox datebox decimalbox doublebox intbox combobox bandbox

button toolbarbutton checkbox radio

Event: Event

Denotes a component lost focus.

Please note that event listeners execute at the server, so the focus at the client might have changed when the event listener for onBlur is called.



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.