public class InputText extends Input
Input.Type
Constructor and Description |
---|
InputText() |
Modifier and Type | Method and Description |
---|---|
void |
drawAttributes() |
java.lang.Integer |
getMaxLength()
Specifies the maximum length (in characters) of an input field.
|
java.lang.Integer |
getSize()
Specifies the width of an input field.
|
protected Input.Type |
getType()
Specifies the type of an input element.
|
boolean |
isReadOnly()
Specifies that an input field should be read-only.
|
InputText |
setMaxLength(java.lang.Integer maxLength)
Set "maxLength" property and if element was draw call script at browser.
|
InputText |
setReadOnly(boolean readOnly)
Set "readOnly" property and if element was draw call script at browser.
|
InputText |
setSize(java.lang.Integer size)
Set "size" property and if element was draw call script at browser.
|
assignValue, getName, getPlaceholder, getValue, isDisabled, setDisabled, setName, setPlaceholder, setValue
add, addAllDropTargets, addDropTarget, addListener, addStyleClass, alert, assignText, callBack, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, confirm, drawAttribute, findElement, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getBundle, getBundleObject, getCustomDragMove, getDir, getDragDropEventsOptions, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyleClass, getTabIndex, getText, getTitle, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isEscapeText, isListening, isListening, isListening, print, prompt, prompt, remove, remove, removeAttribute, removeDropTarget, removeListener, removeListener, removeParent, removeStyleClass, replace, replaceStyleClass, retrieveListeners, retrieveListeners, setChangeChildrenSet, setContenteditable, setCustomDragMove, setDir, setDragDropEventsOptions, setDraggable, setDrawn, setEscapeText, setLang, setParent, setStyle, setStyleClass, setTabIndex, setText, setTitle, transformTagName
@InitializeAttributes public void drawAttributes()
drawAttributes
in class Input
protected Input.Type getType()
Input
public java.lang.Integer getMaxLength()
public InputText setMaxLength(java.lang.Integer maxLength)
maxLength
- the maxLength to set. If is null call removeAttribute of
element at browser. If not null call set "maxLength" property
of element at browser.public java.lang.Integer getSize()
public InputText setSize(java.lang.Integer size)
size
- the size to set. If is null call removeAttribute of element at
browser. If not null call set "size" property of element at
browser.public boolean isReadOnly()
isReadOnly
in class Input
public InputText setReadOnly(boolean readOnly)
setReadOnly
in class Input
readOnly
- the readOnly to set