Doublebox"

From Documentation
m (Created page with 'init')
 
m
Line 1: Line 1:
init
+
{{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+
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 +
 
 +
=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

ZKComRef Doublebox Examples.PNG

 <doublebox value="2.3"/>

|-

|

onClick

| Event:MouseEvent


Denotes user has clicked the component.

|-

|

onSelection

| 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.

|-

|

onFocus

| Event:Event


Denotes when a component gets the focus.

|-

|

onBlur

| Event:Event


Denotes when a component loses the focus.

|-

|

onChange

| Event:InputEvent


An input control notifies the application with the onChange event if its content is changed

by the user.

|-

|

onChanging

| Event:InputEvent


An input control also notifies the application with the onChanging event, when user is

changing the content.

Supported events

Name
Event Type
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



Last Update : 2010/04/30

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