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

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.button.IconButton
                  extended by com.sencha.gxt.widget.core.client.button.ToolButton
All Implemented Interfaces:
HasAttachHandlers, HasResizeHandlers, HasHandlers, EventListener, HasEnabled, HasVisibility, IsWidget, 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, HasItemId

public class ToolButton
extends IconButton

A IconButton that supports a set of predefined styles, see IconButton.IconConfig.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.button.IconButton
IconButton.IconButtonAppearance, IconButton.IconConfig
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
static IconButton.IconConfig CLOSE
           
static IconButton.IconConfig COLLAPSE
           
static IconButton.IconConfig DOUBLEDOWN
           
static IconButton.IconConfig DOUBLELEFT
           
static IconButton.IconConfig DOUBLERIGHT
           
static IconButton.IconConfig DOUBLEUP
           
static IconButton.IconConfig DOWN
           
static IconButton.IconConfig EXPAND
           
static IconButton.IconConfig GEAR
           
static IconButton.IconConfig LEFT
           
static IconButton.IconConfig MAXIMIZE
           
static IconButton.IconConfig MINIMIZE
           
static IconButton.IconConfig MINUS
           
static IconButton.IconConfig PIN
           
static IconButton.IconConfig PLUS
           
static IconButton.IconConfig PRINT
           
static IconButton.IconConfig QUESTION
           
static IconButton.IconConfig REFRESH
           
static IconButton.IconConfig RESTORE
           
static IconButton.IconConfig RIGHT
           
static IconButton.IconConfig SAVE
           
static IconButton.IconConfig SEARCH
           
static IconButton.IconConfig UNPIN
           
static IconButton.IconConfig UP
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ToolButton(IconButton.IconButtonAppearance appearance, IconButton.IconConfig config)
          Creates a new tool button.
ToolButton(IconButton.IconConfig config)
          Creates a new icon button.
ToolButton(IconButton.IconConfig config, SelectEvent.SelectHandler handler)
          Creates a new tool button.
ToolButton(java.lang.String style)
          Creates a new tool button.
 
Method Summary
 
Methods inherited from class com.sencha.gxt.widget.core.client.button.IconButton
addBeforeSelectHandler, addSelectHandler, changeStyle, changeStyle, onBrowserEvent
 
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, getElement, 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
 

Field Detail

CLOSE

public static IconButton.IconConfig CLOSE

COLLAPSE

public static IconButton.IconConfig COLLAPSE

DOUBLEDOWN

public static IconButton.IconConfig DOUBLEDOWN

DOUBLELEFT

public static IconButton.IconConfig DOUBLELEFT

DOUBLERIGHT

public static IconButton.IconConfig DOUBLERIGHT

DOUBLEUP

public static IconButton.IconConfig DOUBLEUP

DOWN

public static IconButton.IconConfig DOWN

EXPAND

public static IconButton.IconConfig EXPAND

GEAR

public static IconButton.IconConfig GEAR

LEFT

public static IconButton.IconConfig LEFT

MAXIMIZE

public static IconButton.IconConfig MAXIMIZE

MINIMIZE

public static IconButton.IconConfig MINIMIZE

MINUS

public static IconButton.IconConfig MINUS

PIN

public static IconButton.IconConfig PIN

UNPIN

public static IconButton.IconConfig UNPIN

PLUS

public static IconButton.IconConfig PLUS

PRINT

public static IconButton.IconConfig PRINT

QUESTION

public static IconButton.IconConfig QUESTION

REFRESH

public static IconButton.IconConfig REFRESH

RESTORE

public static IconButton.IconConfig RESTORE

RIGHT

public static IconButton.IconConfig RIGHT

SAVE

public static IconButton.IconConfig SAVE

SEARCH

public static IconButton.IconConfig SEARCH

UP

public static IconButton.IconConfig UP
Constructor Detail

ToolButton

public ToolButton(IconButton.IconButtonAppearance appearance,
                  IconButton.IconConfig config)
Creates a new tool button.

Parameters:
appearance - the button appearance
config - the icon configuration

ToolButton

@UiConstructor
public ToolButton(IconButton.IconConfig config)
Creates a new icon button.

Parameters:
config - the icon configuration

ToolButton

public ToolButton(IconButton.IconConfig config,
                  SelectEvent.SelectHandler handler)
Creates a new tool button.

Parameters:
config - the icon configuration
handler - the select handler

ToolButton

public ToolButton(java.lang.String style)
Creates a new tool button. The 'over' style and 'disabled' style names determined by adding '-over' and '-disabled' to the base style name.

Parameters:
style - the style name


Copyright © 2012. All Rights Reserved.