Class JadiceDefaultButton

    • Constructor Detail

      • 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 Detail

      • doUpdate

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