public class ToolBar extends HBoxLayoutContainer
Modifier and Type | Class and Description |
---|---|
static interface |
ToolBar.ToolBarAppearance |
HBoxLayoutContainer.HBoxLayoutAlign, HBoxLayoutContainer.HBoxLayoutContainerAppearance
BoxLayoutContainer.BoxLayoutContainerAppearance, BoxLayoutContainer.BoxLayoutData, BoxLayoutContainer.BoxLayoutPack
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
ToolBar()
Creates a new tool bar.
|
ToolBar(ToolBar.ToolBarAppearance appearance)
Creates a new tool bar.
|
Modifier and Type | Method and Description |
---|---|
ToolBar.ToolBarAppearance |
getAppearance()
Returns the tool bar appearance.
|
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 2).
|
void |
setVerticalSpacing(int spacing)
Sets the vertical spacing between child items (defaults to 0).
|
addOverflowHandler, getHBoxLayoutAlign, isEnableOverflow, setEnableOverflow, setHBoxLayoutAlign
add, getPack, getPadding, getScrollOffset, insert, isAdjustForFlexRemainder, setAdjustForFlexRemainder, setPack, setPadding, setScrollOffset
insert, insert
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize
add, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove
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, getShadowPosition, getStateId, getTabIndex, 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, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
add
add
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
public ToolBar()
public ToolBar(ToolBar.ToolBarAppearance appearance)
appearance
- the tool bar appearancepublic ToolBar.ToolBarAppearance getAppearance()
getAppearance
in class HBoxLayoutContainer
public int getHorizontalSpacing()
public int getMinButtonWidth()
public int getVerticalSpacing()
public void setMinButtonWidth(int minWidth)
minWidth
- the minimum button width to setpublic void setVerticalSpacing(int spacing)
spacing
- the spacingpublic void setHorizontalSpacing(int spacing)
spacing
- the spacingpublic void setSpacing(int spacing)
spacing
- the spacingCopyright © 2015. All rights reserved.