Doublebox"
From Documentation
Tmillsclare (talk | contribs) m (Created page with 'init') |
m |
||
Line 1: | Line 1: | ||
− | + | {{ZKComponentReferencePageHeader}} | |
+ | |||
+ | = Doublebox = | ||
+ | |||
+ | *Java API: <javadoc>org.zkoss.zul.Doublebox</javadoc> | ||
+ | *JavaScript API: <javadoc directory="jsdoc">zul.inp.Doublebox</javadoc> | ||
+ | |||
+ | = Employment/Purpose = | ||
+ | |||
+ | An edit box for holding an float point value (double). | ||
+ | |||
+ | = Example = | ||
+ | |||
+ | [[Image:ZKComRef_Doublebox_Examples.PNG]] | ||
+ | |||
+ | <source lang="xml" > | ||
+ | <doublebox value="2.3"/> | ||
+ | </source> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onClick</tt></center> | ||
+ | | '''Event:'''<javadoc> org.zkoss.zk.ui.event.MouseEvent</javadoc> | ||
+ | |||
+ | |||
+ | <tt>Denotes user has clicked the component.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onSelection</tt></center> | ||
+ | | '''Event:'''<javadoc> org.zkoss.zk.ui.event.SelectionEvent</javadoc> | ||
+ | |||
+ | |||
+ | <tt>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.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onFocus</tt></center> | ||
+ | | '''Event:'''<javadoc>org.zkoss.zk.ui.event.Event</javadoc> | ||
+ | |||
+ | |||
+ | <tt>Denotes when a component gets the focus.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onBlur</tt></center> | ||
+ | | '''Event:'''<javadoc>org.zkoss.zk.ui.even.Event</javadoc> | ||
+ | |||
+ | |||
+ | <tt> Denotes when a component loses the focus.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onChange</tt></center> | ||
+ | | '''Event:'''<javadoc>org.zkoss.zk.ui.even.InputEvent</javadoc> | ||
+ | |||
+ | |||
+ | <tt>An input control notifies the application with the onChange event if its content is changed</tt> | ||
+ | |||
+ | <tt>by the user.</tt> | ||
+ | |||
+ | |- | ||
+ | | <center><tt>onChanging</tt></center> | ||
+ | | '''Event:'''<javadoc>org.zkoss.zk.ui.even.InputEvent</javadoc> | ||
+ | |||
+ | |||
+ | <tt>An input control also notifies the application with the onChanging event, when user is</tt> | ||
+ | |||
+ | <tt>changing the content.</tt> | ||
+ | |||
+ | =Supported events= | ||
+ | |||
+ | {| border="1" | width="100%" | ||
+ | ! <center>Name</center> | ||
+ | ! <center>Event Type</center> | ||
+ | |- | ||
+ | | None | ||
+ | | None | ||
+ | |} | ||
+ | |||
+ | =Supported Children= | ||
+ | |||
+ | *ALL | ||
+ | |||
+ | =Use cases= | ||
+ | |||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Description !! Example Location | ||
+ | |- | ||
+ | | 5.0+ | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | =Version History= | ||
+ | |||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | 5.0.1 | ||
+ | | 4/30/2012 | ||
+ | | Initialization | ||
+ | |} | ||
+ | |||
+ | {{ZKComponentReferencePageFooter}} |
Revision as of 04:37, 30 April 2010
Doublebox
Employment/Purpose
An edit box for holding an float point value (double).
Example
<doublebox value="2.3"/>
|-
|
| Event:MouseEvent
Denotes user has clicked the component.
|-
|
| 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 use of the getStart and getEnd methods.
|-
|
| Event:Event
Denotes when a component gets the focus.
|-
|
| Event:Event
Denotes when a component loses the focus.
|-
|
| Event:InputEvent
An input control notifies the application with the onChange event if its content is changed
by the user.
|-
|
| Event:InputEvent
An input control also notifies the application with the onChanging event, when user is
changing the content.
Supported events
None | None |
Supported Children
*ALL
Use cases
Version | Description | Example Location |
---|---|---|
5.0+ |
Version History
Version | Date | Content |
---|---|---|
5.0.1 | 4/30/2012 | Initialization |