@Type(tagName="button") public class Button extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Button.Type
Type options of the button element
|
Constructor and Description |
---|
Button() |
Modifier and Type | Method and Description |
---|---|
void |
assignValue(java.lang.String value)
Set value without calling script.
|
void |
drawAttributes()
draw properties: type, name, value, disabled, tabIndex.
|
java.lang.String |
getName()
Specifies the name for a button.
|
Button.Type |
getType()
Specifies the type of a button.
|
java.lang.String |
getValue()
Specifies the underlying value of a button.
|
boolean |
isDisabled()
Specifies that a button should be disabled.
|
Button |
setDisabled(boolean disabled)
Set "disabled" property and if element was draw call script at browser.
|
Button |
setName(java.lang.String name)
Set "name" property and if element was draw call script at browser.
|
Button |
setType(Button.Type type)
Set "type" property and if element was draw call script at browser.
|
Button |
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()
public void assignValue(java.lang.String value)
value
- of buttonpublic java.lang.String getValue()
public Button 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 Button 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 Button setDisabled(boolean disabled)
disabled
- the disabled to set.public Button.Type getType()
public Button setType(Button.Type type)
type
- the type to set. If is null the value Type.button is set to
property of element at browser.