|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.button.IconButton
public class IconButton
A simple css styled button with 3 states: normal, over, and disabled.
Note: To change the icon style after construction usechangeStyle(String).
| Nested Class Summary | |
|---|---|
static interface |
IconButton.IconButtonAppearance
|
static class |
IconButton.IconConfig
|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
IconButton(IconButton.IconButtonAppearance appearance,
IconButton.IconConfig config)
Creates a new icon button. |
|
IconButton(IconButton.IconConfig config)
Creates a new icon button. |
|
IconButton(java.lang.String style)
Creates a new icon button. |
|
IconButton(java.lang.String style,
SelectEvent.SelectHandler handler)
Creates a new icon button. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addBeforeSelectHandler(BeforeSelectEvent.BeforeSelectHandler handler)
Adds a BeforeSelectEvent.BeforeSelectHandler handler for BeforeSelectEvent events. |
HandlerRegistration |
addSelectHandler(SelectEvent.SelectHandler handler)
Adds a SelectEvent.SelectHandler handler for SelectEvent events. |
void |
changeStyle(IconButton.IconConfig config)
Changes the icon style. |
void |
changeStyle(java.lang.String style)
Changes the icon style. |
void |
onBrowserEvent(Event event)
|
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IconButton(IconButton.IconButtonAppearance appearance,
IconButton.IconConfig config)
appearance - the icon button appearanceconfig - the icon configuration@UiConstructor public IconButton(IconButton.IconConfig config)
config - the icon configurationpublic IconButton(java.lang.String style)
style - the base style
public IconButton(java.lang.String style,
SelectEvent.SelectHandler handler)
style - the base stylehandler - the select handler| Method Detail |
|---|
public HandlerRegistration addBeforeSelectHandler(BeforeSelectEvent.BeforeSelectHandler handler)
BeforeSelectEvent.HasBeforeSelectHandlersBeforeSelectEvent.BeforeSelectHandler handler for BeforeSelectEvent events.
addBeforeSelectHandler in interface BeforeSelectEvent.HasBeforeSelectHandlershandler - the handler
public HandlerRegistration addSelectHandler(SelectEvent.SelectHandler handler)
SelectEvent.HasSelectHandlersSelectEvent.SelectHandler handler for SelectEvent events.
addSelectHandler in interface SelectEvent.HasSelectHandlershandler - the handler
public void changeStyle(IconButton.IconConfig config)
config - the config objectpublic void changeStyle(java.lang.String style)
style - the new icon stylepublic void onBrowserEvent(Event event)
onBrowserEvent in interface EventListeneronBrowserEvent in class Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||