Image:stop.png This documentation is for an older version of ZK. For the latest documentationplease click here .

InputElement

InputElement is a super class for components which provie user key input, such as Textbox, Intbox, etc.

Some features are implemented in this class, such as constraint , disabled, maxlength, name, readonly, etc.

You sholuld not deirectly use this class, please use the inherited class.

Class Name

org.zkoss.zul.InputElement

Supported Events

Properties

Property

Description

Data Type

Default Value

cols

Sets the columns.

Note: non-positive means the same as browser's default

int

0

Property

Description

Data Type

Default Value

constraint

Sets the constraint, must be a default constraint expression. The value,except regular expression , could be a combination String by comma

Values : no positive | no negative | no zero | no empty | nofuture | no past | no today | a regular expression.

String

<empty string>

disabled

Sets whether it is disabled.

Values : true|false

boolean

false

maxlength

Sets the max length.

Note : non-postive means unlimited.

int

0

name

Sets the name of this component.

Don't use this method if your application is purely based on ZK's event-driven model.

The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.

String

null

readonly

Sets whether it is read only

Values : true|false

int

false

tabindex

Sets the tab order of this component.

Note : -1 means the same as browser's default

int

-1

text

Sets the value in the String format.

Note : default value depends on implementation of sub-class.

String

null

Methods

*NONE

Inherited From