com.sencha.gxt.widget.core.client.toolbar
Class ToolBar

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.container.Container
                  extended by com.sencha.gxt.widget.core.client.container.ResizeContainer
                      extended by com.sencha.gxt.widget.core.client.container.InsertResizeContainer
                          extended by com.sencha.gxt.widget.core.client.container.BoxLayoutContainer
                              extended by com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
                                  extended by com.sencha.gxt.widget.core.client.toolbar.ToolBar
All Implemented Interfaces:
HasAttachHandlers, HasResizeHandlers, HasHandlers, EventListener, HasEnabled, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, InsertPanel, InsertPanel.ForIsWidget, IsWidget, ProvidesResize, RequiresResize, HasLayout, AddEvent.HasAddHandlers, BeforeAddEvent.HasBeforeAddHandlers, BeforeHideEvent.HasBeforeHideHandlers, BeforeRemoveEvent.HasBeforeRemoveHandlers, BeforeShowContextMenuEvent.HasBeforeShowContextMenuHandler, BeforeShowEvent.HasBeforeShowHandlers, BlurEvent.HasBlurHandlers, ContainerHandler.HasContainerHandlers, DisableEvent.HasDisableHandlers, EnableEvent.HasEnableHandlers, FocusEvent.HasFocusHandlers, HideEvent.HasHideHandlers, MoveEvent.HasMoveHandlers, OverflowEvent.HasOverflowHandlers, RemoveEvent.HasRemoveHandlers, ShowContextMenuEvent.HasShowContextMenuHandler, ShowEvent.HasShowHandlers, HasFocusSupport, HasItemId, java.lang.Iterable<Widget>
Direct Known Subclasses:
ButtonBar, PagingToolBar

public class ToolBar
extends HBoxLayoutContainer

A standard tool bar.


Nested Class Summary
static interface ToolBar.ToolBarAppearance
           
 
Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
HBoxLayoutContainer.HBoxLayoutAlign
 
Nested classes/interfaces inherited from class com.sencha.gxt.widget.core.client.container.BoxLayoutContainer
BoxLayoutContainer.BoxLayoutContainerAppearance, BoxLayoutContainer.BoxLayoutData, BoxLayoutContainer.BoxLayoutPack
 
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.user.client.ui.InsertPanel
InsertPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ToolBar()
          Creates a new tool bar.
ToolBar(ToolBar.ToolBarAppearance appearance)
          Creates a new tool bar.
 
Method Summary
 int getHorizontalSpacing()
          Returns the child widget horizontal spacing.
 int getMinButtonWidth()
          Returns the minimum button width.
 int getVerticalSpacing()
          Returns the child widget vertical spacing.
 void setHorizontalSpacing(int spacing)
          Sets the horizontal spacing between child items (defaults to 0).
 void setMinButtonWidth(int minWidth)
          Sets the minimum width for any buttons in the toolbar.
 void setSpacing(int spacing)
          Sets both the horizontal and vertical spacing between child items (defaults to 0).
 void setVerticalSpacing(int spacing)
          Sets the vertical spacing between child items (defaults to 0).
 
Methods inherited from class com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer
addOverflowHandler, getHBoxLayoutAlign, isEnableOverflow, setEnableOverflow, setHBoxLayoutAlign
 
Methods inherited from class com.sencha.gxt.widget.core.client.container.BoxLayoutContainer
add, getPack, getPadding, getScrollOffset, insert, isAdjustForFlexRemainder, setAdjustForFlexRemainder, setPack, setPadding, setScrollOffset
 
Methods inherited from class com.sencha.gxt.widget.core.client.container.InsertResizeContainer
insert, insert
 
Methods inherited from class com.sencha.gxt.widget.core.client.container.ResizeContainer
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize
 
Methods inherited from class com.sencha.gxt.widget.core.client.container.Container
add, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove
 
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, disableEvents, 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, onBrowserEvent, 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.user.client.ui.InsertPanel.ForIsWidget
add
 
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel
add
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Constructor Detail

ToolBar

public ToolBar()
Creates a new tool bar.


ToolBar

public ToolBar(ToolBar.ToolBarAppearance appearance)
Creates a new tool bar.

Parameters:
appearance - the tool bar appearance
Method Detail

getHorizontalSpacing

public int getHorizontalSpacing()
Returns the child widget horizontal spacing.

Returns:
the spacing in pixels

getMinButtonWidth

public int getMinButtonWidth()
Returns the minimum button width.

Returns:
the minimum button width

getVerticalSpacing

public int getVerticalSpacing()
Returns the child widget vertical spacing.

Returns:
the spacing in pixels

setMinButtonWidth

public void setMinButtonWidth(int minWidth)
Sets the minimum width for any buttons in the toolbar.

Parameters:
minWidth - the minimum button width to set

setVerticalSpacing

public void setVerticalSpacing(int spacing)
Sets the vertical spacing between child items (defaults to 0). Spacing is implemented using layout data margins. Margins will be overridden by layout if spacing >= 0. Set spacing to -1 to prevent margin calculations.

Parameters:
spacing - the spacing

setHorizontalSpacing

public void setHorizontalSpacing(int spacing)
Sets the horizontal spacing between child items (defaults to 0). Spacing is implemented using layout data margins. Margins will be overridden by layout if spacing >= 0. Set spacing to -1 to prevent margin calculations.

Parameters:
spacing - the spacing

setSpacing

public void setSpacing(int spacing)
Sets both the horizontal and vertical spacing between child items (defaults to 0). Spacing is implemented using layout data margins. Margins will be overridden by layout if spacing >= 0. Set spacing to -1 to prevent margin calculations.

Parameters:
spacing - the spacing


Copyright © 2012. All Rights Reserved.