com.vaadin.terminal.gwt.client.ui.button
Class ButtonState

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.communication.SharedState
      extended by com.vaadin.terminal.gwt.client.ComponentState
          extended by com.vaadin.terminal.gwt.client.ui.button.ButtonState
All Implemented Interfaces:
Serializable

public class ButtonState
extends ComponentState

Shared state for Button and NativeButton.

Since:
7.0
See Also:
ComponentState, Serialized Form

Constructor Summary
ButtonState()
           
 
Method Summary
 int getClickShortcutKeyCode()
          Returns the key code for activating the button via a keyboard shortcut.
 boolean isDisableOnClick()
          Checks whether the button should be disabled on the client side on next click.
 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.
 
Methods inherited from class com.vaadin.terminal.gwt.client.ComponentState
addRegisteredEventListener, getCaption, getDebugId, getDescription, getErrorMessage, getHeight, getIcon, getRegisteredEventListeners, getStyles, getWidth, hasDescription, hasStyles, isEnabled, isImmediate, isReadOnly, isUndefinedHeight, isUndefinedWidth, isVisible, removeRegisteredEventListener, setCaption, setDebugId, setDescription, setEnabled, setErrorMessage, setHeight, setIcon, setImmediate, setReadOnly, setRegisteredEventListeners, setStyles, setVisible, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonState

public ButtonState()
Method Detail

isDisableOnClick

public boolean isDisableOnClick()
Checks whether the button should be disabled on the client side on next click.

Returns:
true if the button should be disabled on click

setDisableOnClick

public void setDisableOnClick(boolean disableOnClick)
Sets whether the button should be disabled on the client side on next click.

Parameters:
disableOnClick - true if the button should be disabled on click

getClickShortcutKeyCode

public int getClickShortcutKeyCode()
Returns the key code for activating the button via a keyboard shortcut. See Button.setClickShortcut(int, int...) for more information.

Returns:
key code or 0 for none

setClickShortcutKeyCode

public void setClickShortcutKeyCode(int clickShortcutKeyCode)
Sets the key code for activating the button via a keyboard shortcut. See Button.setClickShortcut(int, int...) for more information.

Parameters:
clickShortcutKeyCode - key code or 0 for none


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.