public class SplitButton extends TextButton implements ArrowClickEvent.HasArrowClickHandlers
Modifier and Type | Class and Description |
---|---|
static interface |
SplitButton.SplitButtonAppearance |
valueUpdater
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, resizeHandler, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
SplitButton()
Creates a new split button.
|
SplitButton(SplitButtonCell cell)
Creates a new split button.
|
SplitButton(SplitButtonCell cell,
String text)
Creates a new split button.
|
SplitButton(String text)
Creates a new split button.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addArrowClickHandler(ArrowClickEvent.ArrowClickHandler handler)
Adds a
SelectEvent.SelectHandler handler for ArrowClickEvent events. |
protected void |
onClick(Event e) |
addArrowSelectHandler, addBeforeSelectHandler, addSelectHandler, createContext, getArrowAlign, getCell, getHTML, getIcon, getIconAlign, getMenu, getMenuAlign, getMinWidth, getMouseEvents, getScale, getText, hideMenu, onBrowserEvent, onRedraw, onUnload, setArrowAlign, setHTML, setIcon, setIconAlign, setMenu, setMenuAlign, setMinWidth, setMouseEvents, setScale, setTabIndex, setText, showMenu
addValueChangeHandler, getElement, getFocusEl, getKey, getKeyProvider, getValue, onAfterFirstAttach, onDisable, onEnable, onResize, redraw, redraw, setKeyProvider, setValue, setValue, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disable, disableContextMenu, disableEvents, enable, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAttach, onBlur, onDetach, onFocus, onHide, onHideContextMenu, onLoad, onPosition, onRightClick, onShow, onShowContextMenu, onWindowResize, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
public SplitButton()
public SplitButton(SplitButtonCell cell)
cell
- the button's cellpublic SplitButton(SplitButtonCell cell, String text)
cell
- the button's celltext
- the button's textpublic SplitButton(String text)
text
- the button's textpublic HandlerRegistration addArrowClickHandler(ArrowClickEvent.ArrowClickHandler handler)
ArrowClickEvent.HasArrowClickHandlers
SelectEvent.SelectHandler
handler for ArrowClickEvent
events.addArrowClickHandler
in interface ArrowClickEvent.HasArrowClickHandlers
handler
- the handlerprotected void onClick(Event e)
onClick
in class CellButtonBase<String>
Copyright © 2018. All rights reserved.