|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.terminal.gwt.client.communication.SharedState com.vaadin.terminal.gwt.client.ComponentState com.vaadin.terminal.gwt.client.ui.button.ButtonState
public class ButtonState
Shared state for Button and NativeButton.
ComponentState
,
Serialized FormConstructor Summary | |
---|---|
ButtonState()
|
Method Summary | |
---|---|
int |
getClickShortcutKeyCode()
Returns the key code for activating the button via a keyboard shortcut. |
int |
getTabIndex()
Gets the tabulator index of the field. |
boolean |
isDisableOnClick()
Checks whether the button should be disabled on the client side on next click. |
boolean |
isHtmlContentAllowed()
Return HTML rendering setting. |
void |
setClickShortcutKeyCode(int clickShortcutKeyCode)
Sets the key code for activating the button via a keyboard shortcut. |
void |
setDisableOnClick(boolean disableOnClick)
Sets whether the button should be disabled on the client side on next click. |
void |
setHtmlContentAllowed(boolean htmlContentAllowed)
Set whether the caption text is rendered as HTML or not. |
void |
setTabIndex(int tabIndex)
Sets the tabulator index of the field. |
Methods inherited from class com.vaadin.terminal.gwt.client.ComponentState |
---|
addRegisteredEventListener, getCaption, getDebugId, getDescription, getErrorMessage, getHeight, getIcon, getRegisteredEventListeners, getStyles, getWidth, hasDescription, hasStyles, isImmediate, isReadOnly, isUndefinedHeight, isUndefinedWidth, isVisible, removeRegisteredEventListener, setCaption, setDebugId, setDescription, setErrorMessage, setHeight, setIcon, setImmediate, setReadOnly, setRegisteredEventListeners, setStyles, setVisible, setWidth |
Methods inherited from class com.vaadin.terminal.gwt.client.communication.SharedState |
---|
isEnabled, setEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonState()
Method Detail |
---|
public boolean isDisableOnClick()
public void setDisableOnClick(boolean disableOnClick)
disableOnClick
- true if the button should be disabled on clickpublic int getClickShortcutKeyCode()
Button.setClickShortcut(int, int...)
for more information.
public void setClickShortcutKeyCode(int clickShortcutKeyCode)
Button.setClickShortcut(int, int...)
for more information.
clickShortcutKeyCode
- key code or 0 for nonepublic void setHtmlContentAllowed(boolean htmlContentAllowed)
htmlContentAllowed
- true
if caption is rendered as HTML,
false
otherwisepublic boolean isHtmlContentAllowed()
true
if the caption text is to be rendered as HTML,
false
otherwisepublic int getTabIndex()
TabIndexState
getTabIndex
in interface TabIndexState
public void setTabIndex(int tabIndex)
TabIndexState
setTabIndex
in interface TabIndexState
tabIndex
- the tab index to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |