com.sencha.gxt.widget.core.client.button
Class SplitButton

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.sencha.gxt.widget.core.client.Component
              extended by com.sencha.gxt.widget.core.client.cell.CellComponent<C>
                  extended by com.sencha.gxt.widget.core.client.button.CellButtonBase<java.lang.String>
                      extended by com.sencha.gxt.widget.core.client.button.TextButton
                          extended by com.sencha.gxt.widget.core.client.button.SplitButton
All Implemented Interfaces:
Editor<java.lang.String>, LeafValueEditor<java.lang.String>, HasAttachHandlers, HasResizeHandlers, HasValueChangeHandlers<java.lang.String>, HasHandlers, HasSafeHtml, EventListener, TakesValue<java.lang.String>, HasEnabled, HasHTML, HasText, HasValue<java.lang.String>, HasVisibility, IsWidget, HasKeyProvider<java.lang.String>, ArrowClickEvent.HasArrowClickHandlers, ArrowSelectEvent.HasArrowSelectHandlers, BeforeHideEvent.HasBeforeHideHandlers, BeforeSelectEvent.HasBeforeSelectHandlers, BeforeShowContextMenuEvent.HasBeforeShowContextMenuHandler, BeforeShowEvent.HasBeforeShowHandlers, BlurEvent.HasBlurHandlers, DisableEvent.HasDisableHandlers, EnableEvent.HasEnableHandlers, FocusEvent.HasFocusHandlers, HideEvent.HasHideHandlers, MoveEvent.HasMoveHandlers, SelectEvent.HasSelectHandlers, ShowContextMenuEvent.HasShowContextMenuHandler, ShowEvent.HasShowHandlers, HasFocusSupport, HasIcon, HasItemId

public class SplitButton
extends TextButton
implements ArrowClickEvent.HasArrowClickHandlers

A split button that provides a built-in dropdown arrow that can fire an event separately from the default click event of the button.


Nested Class Summary
static interface SplitButton.SplitButtonAppearance
           
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor
Editor.Ignore, Editor.Path
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
SplitButton()
          Creates a new split button.
SplitButton(SplitButtonCell cell)
          Creates a new split button.
SplitButton(SplitButtonCell cell, java.lang.String text)
          Creates a new split button.
SplitButton(java.lang.String text)
          Creates a new split button.
 
Method Summary
 HandlerRegistration addArrowClickHandler(ArrowClickEvent.ArrowClickHandler handler)
          Adds a SelectEvent.SelectHandler handler for ArrowClickEvent events.
 
Methods inherited from class com.sencha.gxt.widget.core.client.button.CellButtonBase
addArrowSelectHandler, addBeforeSelectHandler, addSelectHandler, getArrowAlign, getHTML, getIcon, getIconAlign, getMenu, getMenuAlign, getMinWidth, getMouseEvents, getScale, getText, hideMenu, onBrowserEvent, setArrowAlign, setHTML, setHTML, setIcon, setIconAlign, setMenu, setMenuAlign, setMinWidth, setMouseEvents, setScale, setText, showMenu
 
Methods inherited from class com.sencha.gxt.widget.core.client.cell.CellComponent
addValueChangeHandler, getCell, getElement, getKeyProvider, getValue, redraw, setValue, setValue, setValue
 
Methods inherited from class com.sencha.gxt.widget.core.client.Component
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getStateId, 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, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
 
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
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

SplitButton

public SplitButton()
Creates a new split button.


SplitButton

public SplitButton(SplitButtonCell cell)
Creates a new split button.

Parameters:
cell - the button's cell

SplitButton

public SplitButton(SplitButtonCell cell,
                   java.lang.String text)
Creates a new split button.

Parameters:
cell - the button's cell
text - the button's text

SplitButton

public SplitButton(java.lang.String text)
Creates a new split button.

Parameters:
text - the button's text
Method Detail

addArrowClickHandler

public HandlerRegistration addArrowClickHandler(ArrowClickEvent.ArrowClickHandler handler)
Description copied from interface: ArrowClickEvent.HasArrowClickHandlers
Adds a SelectEvent.SelectHandler handler for ArrowClickEvent events.

Specified by:
addArrowClickHandler in interface ArrowClickEvent.HasArrowClickHandlers
Parameters:
handler - the handler
Returns:
the registration for the event


Copyright © 2012. All Rights Reserved.