Longbox

A longbox is used to let users input long data.

<window title="Longbox Demo" border="normal" width="200px">
    long box:<longbox/>    
</window>

Class Name

org.zkoss.zul.Longbox

Supported Child Components

*NONE

Supported Events

Event Name

Event Type

onChange

org.zkoss.zk.ui.event.InputEvent

Description:

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

onChanging

org.zkoss.zk.ui.event.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

org.zkoss.zk.ui.event.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

org.zkoss.zk.ui.event.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

org.zkoss.zk.ui.event.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

org.zkoss.ui.zk.ui.event.CreateEvent

Description:

Denotes a component is created when rendering a ZUML page.

onDrop

org.zkoss.ui.zk.ui.event.DropEvent

Description:

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

Properties

Property

Description

Return Data Type

val ue

Sets the value.

Long

Methods

Name

Description

Data Type

Values

intValue()

Returns the value in int.

int

longValue()

Returns the value in long.

long

Inherited From