Package com.levigo.jadice.web.client.ui
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
The default
JadiceButton
. The content of the button is contained in a Action
.-
Field Summary
Fields inherited from class com.levigo.jadice.web.client.ui.JadiceButton
action, command
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Deprecated.JadiceDefaultButton
(Action action) Creates a new button with the given action.JadiceDefaultButton
(Action action, boolean showLabel) Creates a new button with the given action.JadiceDefaultButton
(Action action, boolean showLabel, JadiceButtonStyle style) Creates a new button with the given action and the given style.JadiceDefaultButton
(Action action, boolean showLabel, JadiceButtonStyle style, PopupExecutor popupExecutor) Creates a new button with the given action, the given style and the givenPopupExecutor
.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 givenPopupExecutor
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doUpdate
(boolean enabled, boolean selected, boolean hover, boolean pressed) protected void
init
(Action action, boolean showLabel, JadiceButtonStyle style, PopupExecutor popupExecutor, com.google.gwt.aria.client.Role role) protected void
updateFocus
(boolean focus) Methods inherited from class com.levigo.jadice.web.client.ui.JadiceButton
asWidget, doUpdate, getCommand, getContext, getTabIndex, init, setAriaRole, setContext, setDescription, setFocus, setHover, setPrefered, setTabIndex, setVisible, setWidget, update
-
Constructor Details
-
JadiceDefaultButton
Deprecated.deprecated for gwt only -
JadiceDefaultButton
Creates a new button with the given action.- Parameters:
action
- theAction
-
JadiceDefaultButton
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
- theAction
showLabel
- whether the label should be shown or not
-
JadiceDefaultButton
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
- theAction
showLabel
- whether the label should be shown or notstyle
- 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 givenPopupExecutor
. Whether the label contained in the button should be shown is configured by the showLabel flag.- Parameters:
action
- theAction
showLabel
- whether the label should be shown or notstyle
- 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 givenPopupExecutor
. Whether the label contained in the button should be shown is configured by the showLabel flag.- Parameters:
action
- theAction
showLabel
- whether the label should be shown or notstyle
- the style for the buttonrole
- 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 classJadiceButton
-
updateFocus
protected void updateFocus(boolean focus) - Overrides:
updateFocus
in classJadiceButton
-