Class JadiceDefaultButton

java.lang.Object
com.levigo.jadice.web.client.ui.JadiceButton
com.levigo.jadice.web.client.ui.JadiceDefaultButton
All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget, HasPreferedPopupPosition
Direct Known Subclasses:
JadiceSubmenuButton

public class JadiceDefaultButton extends JadiceButton
The default JadiceButton. The content of the button is contained in a Action.
  • Constructor Details

    • JadiceDefaultButton

      @Deprecated protected JadiceDefaultButton()
      Deprecated.
      deprecated for gwt only
    • JadiceDefaultButton

      public JadiceDefaultButton(Action action)
      Creates a new button with the given action.
      Parameters:
      action - the Action
    • JadiceDefaultButton

      public JadiceDefaultButton(Action action, boolean showLabel)
      Creates a new button with the given action. Whether the label contained in the button should be shown is configured by the showLabel flag.
      Parameters:
      action - the Action
      showLabel - whether the label should be shown or not
    • JadiceDefaultButton

      public JadiceDefaultButton(Action action, boolean showLabel, JadiceButtonStyle style)
      Creates a new button with the given action and the given style. Whether the label contained in the button should be shown is configured by the showLabel flag.
      Parameters:
      action - the Action
      showLabel - whether the label should be shown or not
      style - the style for the button
    • JadiceDefaultButton

      public JadiceDefaultButton(Action action, boolean showLabel, JadiceButtonStyle style, PopupExecutor popupExecutor)
      Creates a new button with the given action, the given style and the given PopupExecutor. Whether the label contained in the button should be shown is configured by the showLabel flag.
      Parameters:
      action - the Action
      showLabel - whether the label should be shown or not
      style - the style for the button
    • JadiceDefaultButton

      public JadiceDefaultButton(Action action, boolean showLabel, JadiceButtonStyle style, PopupExecutor popupExecutor, com.google.gwt.aria.client.Role role)
      Creates a new button with the given action, the given style and the given PopupExecutor. Whether the label contained in the button should be shown is configured by the showLabel flag.
      Parameters:
      action - the Action
      showLabel - whether the label should be shown or not
      style - the style for the button
      role - the aria role for the button
  • Method Details

    • init

      protected void init(Action action, boolean showLabel, JadiceButtonStyle style, PopupExecutor popupExecutor, com.google.gwt.aria.client.Role role)
    • doUpdate

      protected void doUpdate(boolean enabled, boolean selected, boolean hover, boolean pressed)
      Specified by:
      doUpdate in class JadiceButton
    • updateFocus

      protected void updateFocus(boolean focus)
      Overrides:
      updateFocus in class JadiceButton