Intbox"

From Documentation
Line 111: Line 111:
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| 5.0.2
+
|  
| 4/27/2010
+
|  
| Initialization
+
|  
 
|}
 
|}
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Revision as of 08:24, 19 May 2010

Intbox

Employment/Purpose

A intbox is used to let users input integer data.

Example

ZKComRef Intbox.png

While input invalid data:

ZKComRef Intbox2.png

 <window title="Intbox Demo" border="normal" width="200px">
     int box:<intbox/>
 </window>

Supported events

Name
Event Type
onChange
InputEvent

Description:

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

onChanging
InputEvent

Description:

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
SelectionEvent

Description:

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 use of the getStart and getEnd methods.

onFocus
Event

Description:

Denotes when a component gets the focus. Remember event listeners execute at the server, so the focus at the client might be changed when the event listener for onFocus got executed.

onBlur
Event

Description:

Denotes when a component loses the focus. Remember event listeners execute at the server, so the focus at the client might be changed when the event listener for onBlur got executed.

onCreate
CreateEvent

Description:

Denotes a component is created when rendering a ZUML page.

onDrop
DropEvent

Description:

Denotes another component is dropped to the component that receives this event.

Supported Children

*NONE

Use cases

Version Description Example Location
3.6 Leading zero in Intbox http://www.zkoss.org/forum/listComment/10271
3.6 Constraint Intbox to accept only digits http://www.zkoss.org/forum/listComment/4603

Version History

Version Date Content
     



Last Update : 2010/05/19

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