Package com.levigo.jadice.web.client.ui
Class JadiceButton
java.lang.Object
com.levigo.jadice.web.client.ui.JadiceButton
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget
,HasPreferedPopupPosition
- Direct Known Subclasses:
JadiceDefaultButton
public abstract class JadiceButton
extends Object
implements com.google.gwt.user.client.ui.IsWidget, HasPreferedPopupPosition
A superclass for buttons displayed in toolbars or widgets.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.google.gwt.user.client.ui.Widget
asWidget()
protected void
doUpdate()
Call this, when you want to call doUpdate without saving manually the values inside it this will call doUpdate(b, b, b, b)protected abstract void
doUpdate
(boolean enabled, boolean selected, boolean hover, boolean pressed) protected Command
protected Collection
<Object> protected int
protected void
init
(Action action, PopupExecutor popupExecutor) protected void
setAriaRole
(com.google.gwt.aria.client.Role role) void
setContext
(Collection<Object> context) Setting arguments manually.protected void
setDescription
(String description) void
setFocus
(boolean focus) void
setHover
(boolean hover) void
setPrefered
(PopupExecutor.PreferredPosition position) protected void
setTabIndex
(int tabIndex) void
setVisible
(boolean visible) protected void
setWidget
(com.google.gwt.user.client.ui.IsWidget widget) void
update()
protected void
updateFocus
(boolean focus)
-
Field Details
-
action
-
command
-
-
Constructor Details
-
JadiceButton
public JadiceButton()
-
-
Method Details
-
init
-
setAriaRole
protected void setAriaRole(com.google.gwt.aria.client.Role role) -
getTabIndex
protected int getTabIndex() -
setTabIndex
protected void setTabIndex(int tabIndex) -
setDescription
-
setWidget
protected void setWidget(com.google.gwt.user.client.ui.IsWidget widget) -
asWidget
public final com.google.gwt.user.client.ui.Widget asWidget()- Specified by:
asWidget
in interfacecom.google.gwt.user.client.ui.IsWidget
-
getCommand
-
setContext
Setting arguments manually. Use this when you don't want to use the Context-mechanism- Parameters:
context
- the Arguments for the Command
-
getContext
-
update
public void update() -
doUpdate
protected void doUpdate()Call this, when you want to call doUpdate without saving manually the values inside it this will call doUpdate(b, b, b, b) -
doUpdate
protected abstract void doUpdate(boolean enabled, boolean selected, boolean hover, boolean pressed) -
updateFocus
protected void updateFocus(boolean focus) -
setVisible
public void setVisible(boolean visible) -
setHover
public void setHover(boolean hover) -
setFocus
public void setFocus(boolean focus) -
setPrefered
- Specified by:
setPrefered
in interfaceHasPreferedPopupPosition
-