@Type(tagName="input", isClose=false, isInnerHTML=false) public abstract class Input extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Input.Type
Specifies the type of an input element
|
Constructor and Description |
---|
Input() |
Modifier and Type | Method and Description |
---|---|
Input |
assignValue(java.lang.String value)
Sets value of element without drawing attribute changes.
|
void |
drawAttributes() |
java.lang.String |
getName()
Specifies the name for a input.
|
java.lang.String |
getPlaceholder() |
protected abstract Input.Type |
getType()
Specifies the type of an input element.
|
java.lang.String |
getValue()
Specifies the value of an input element.
|
boolean |
isDisabled()
Specifies that an input element should be disabled.
|
boolean |
isReadOnly()
Specifies that a input should be read-only
|
Input |
setDisabled(boolean disabled)
Set "disabled" property and if element was draw call script at browser.
|
Input |
setName(java.lang.String name)
Set "name" property and if element was draw call script at browser.
|
Input |
setPlaceholder(java.lang.String placeholder)
Set short hint is displayed in the input field before the user enters a
value.
|
Input |
setReadOnly(boolean readOnly)
Set "readOnly" property and if element was draw call script at browser.
|
Input |
setValue(java.lang.String value)
Set "value" property and if element was draw call script at browser.
|
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()
protected abstract Input.Type getType()
public Input assignValue(java.lang.String value)
value
- to assignpublic java.lang.String getValue()
public Input setValue(java.lang.String value)
value
- the value to set. If is null call set empty property value of
element at browser. If not null call set "value" property of
element at browser.public java.lang.String getName()
public Input setName(java.lang.String name)
name
- the name to set. If is null call set empty property value of
element at browser. If not null call set "name" property of
element at browser.public boolean isDisabled()
public Input setDisabled(boolean disabled)
disabled
- the disabled to set.public java.lang.String getPlaceholder()
public Input setPlaceholder(java.lang.String placeholder)
placeholder
- string with the hintpublic boolean isReadOnly()
public Input setReadOnly(boolean readOnly)
readOnly
- the readOnly to set