Input Events"
Maya001122 (talk | contribs) m (Created page with '{{ZKDevelopersGuidePageHeader}} {| border="1" ! <center>Event Name</center> ! <center>Components</center> ! <center>Description</center> |- | onChange | textbox datebox decim…') |
m (correct highlight (via JWB)) |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
| textbox datebox decimalbox | | textbox datebox decimalbox | ||
doublebox intbox combobox bandbox | doublebox intbox combobox bandbox | ||
− | | Event: < | + | | Event: <javadoc>org.zkoss.zk.ui.event.InputEvent</javadoc> |
Denotes the content of an input component has been modified by the user. | Denotes the content of an input component has been modified by the user. | ||
Line 19: | Line 19: | ||
doublebox | doublebox | ||
intbox combobox bandbox | intbox combobox bandbox | ||
− | | Event: < | + | | 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 < | + | 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. |
|- | |- | ||
| onSelection | | onSelection | ||
| textbox datebox decimalbox doublebox intbox combobox bandbox | | textbox datebox decimalbox doublebox intbox combobox bandbox | ||
− | | Event: < | + | | 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 < | + | 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 35: | Line 35: | ||
button toolbarbutton checkbox | button toolbarbutton checkbox | ||
radio | radio | ||
− | | Event: < | + | | Event: <javadoc>org.zkoss.zk.ui.event.Event</javadoc> |
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 < | + | 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 46: | Line 46: | ||
button toolbarbutton checkbox | button toolbarbutton checkbox | ||
radio | radio | ||
− | | Event: < | + | | Event: <javadoc>org.zkoss.zk.ui.event.Event</javadoc> |
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 < | + | 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
This documentation is for an older version of ZK. For the latest one, please click here.
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 |
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 |
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 |
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 |