public class IconButton extends Component implements BeforeSelectEvent.HasBeforeSelectHandlers, SelectEvent.HasSelectHandlers
changeStyle(String)
.Modifier and Type | Class and Description |
---|---|
static interface |
IconButton.IconButtonAppearance |
static class |
IconButton.IconConfig |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
IconButton(IconButton.IconButtonAppearance appearance,
IconButton.IconConfig config)
Creates a new icon button.
|
IconButton(IconButton.IconConfig config)
Creates a new icon button.
|
IconButton(String style)
Creates a new icon button.
|
IconButton(String style,
SelectEvent.SelectHandler handler)
Creates a new icon button.
|
Modifier and Type | Method and Description |
---|---|
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(String style)
Changes the icon style.
|
IconButton.IconButtonAppearance |
getAppearance() |
void |
onBrowserEvent(Event event) |
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
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(String style)
style
- the base stylepublic IconButton(String style, SelectEvent.SelectHandler handler)
style
- the base stylehandler
- the select handlerpublic HandlerRegistration addBeforeSelectHandler(BeforeSelectEvent.BeforeSelectHandler handler)
BeforeSelectEvent.HasBeforeSelectHandlers
BeforeSelectEvent.BeforeSelectHandler
handler for BeforeSelectEvent
events.addBeforeSelectHandler
in interface BeforeSelectEvent.HasBeforeSelectHandlers
handler
- the handlerpublic HandlerRegistration addSelectHandler(SelectEvent.SelectHandler handler)
SelectEvent.HasSelectHandlers
SelectEvent.SelectHandler
handler for SelectEvent
events.addSelectHandler
in interface SelectEvent.HasSelectHandlers
handler
- the handlerpublic void changeStyle(IconButton.IconConfig config)
config
- the config objectpublic void changeStyle(String style)
style
- the new icon stylepublic IconButton.IconButtonAppearance getAppearance()
public void onBrowserEvent(Event event)
onBrowserEvent
in interface EventListener
onBrowserEvent
in class Component
Copyright © 2015. All rights reserved.