A Input is a widget that contains one line of editable text.
|
$Init() @file |
|
NEW(text) @public | Create a new Input with text as the text.
|
|
NEW(text, size, maxLength) @public | Create a new Input with text as the text.
|
|
$setText(text) @public | Replace the text of the Input with text.
|
|
$setSize(size) @public | Set the number of characters that are visible (approximately) to
size.
|
|
$setMaxLength(maxLength) @public | Set the maximum number of characters that can be entered to maxLength.
|
|
$getText()
string @public | Return the text of the Input.
|
|
$ToString()
string @public | Return "Input(text)", where "text" is the Input text.
|
|
Inherited from ZWT.Widget:
|
|
NEW() @public |
|
$getParent()
UIObject @public | Return the parent of this Widget.
|
|
$setHoverText(text)
ZWT.Widget @public | Set the text to be displayed on hover-over.
|
|
$getHoverText()
string @public | Get the text to be displayed on hover-over.
|
|
$addToParent(parent) @public | Add this widget to parent.
|
|
$removeFromParent() @public | Remove this Widget from its parent.
|
|
$setHandler(eventType, handler) @public | Set handler as the only method to be invoked for eventType.
|
|
$addHandler(eventType, handler) @public | Add handler as a method to be invoked for eventType.
|
|
$setClickHandler(handler) @public | Set handler as the method to be invoked for a click event on this
widget.
|
|
$setMouseOverHandler(handler) @public | Set handler as the method to be invoked when the mouse enters the
area of this widget.
|
|
$setMouseOutHandler(handler) @public | Set handler as the method to be invoked when the mouse leaves the
area of this widget.
|
|
$setKeyHandler(handler) @public | Set handler to be invoked when a key is typed in this widget.
|
|
$setKeyDownHandler(handler) @public | Set handler to be invoked when a key is pressed in this widget.
|
|
$setKeyUpHandler(handler) @public | Set handler to be invoked when a key is released in this widget.
|
|
$setActive(active) @public | Set whether the Widget handles click events.
|
|
$isActive()
bool @public | Return whether the Widget was set to be active.
|
|
$setInactiveStyle(style) @public | Set the style to be used when the Widget is inactive.
|
|
Inherited from ZWT.UIObject:
|
ZWT.Element |
$elem
@public
| The HTML element for this Item.
|
|
|
$setStyle(style) @public | Set the main Style for this UIObject to style.
|
|
$setStyleList(styles) @public | Set the list of Styles for this UIObject to styles.
|
|
$addStyle(style) @public | Add style to this UIObject, keeping previously set ones.
|
|
$removeStyle(style) @public | Remove style from this UIObject.
|
|
$getStyle()
ZWT.Style @public | Return the main Style for this UIObject.
|
|
$getStyleList()
list<ZWT.Style> @public | Return the list of Styles for this UIObject.
|
|
$getWidth()
int @public | Return the width of the Element.
|
|
$getHeight()
int @public | Return the height of the Element.
|
|
$getTop()
int @public | Return the vertical position of the Element in the page
|
|
$getTop(container)
int @public | Return the vertical position of the Element within container
|
|
$getLeft()
int @public | Return the horizontal position of the Element in the page
|
|
$getLeft(container)
int @public | Return the horizontal position of the Element within container
|
|
$setHidden(hidden) @public | Set the item to be hidden or displayed.
|
|