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
hasOverflow, hiddens, more, moreMenu
forceLayoutCommand, forceLayoutOnResize, hadLayoutRunning, layoutCommand, layoutRequiredThisEventLoop, layoutRunning
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 |
---|
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.
|
protected void |
onFocus(Event event) |
protected void |
onInsert(int index,
Widget child) |
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, addWidgetToMenu, clearMenu, doLayout, getHBoxLayoutAlign, getWidgetWidth, hideComponent, initMore, isEnableOverflow, isHidden, onOverflow, onRemove, onUnoverflow, setEnableOverflow, setHBoxLayoutAlign, unhideComponent
add, getContainerTarget, getPack, getPadding, getScrollOffset, insert, isAdjustForFlexRemainder, setAdjustForFlexRemainder, setPack, setPadding, setScrollOffset
insert, insert
applyLayout, applyLayout, forceLayout, forceLayoutOnChildren, forceLayoutOnChildren, getLeftRightMargins, getParentLayoutWidget, getSideMargins, getTopBottomMargins, isLayoutRunning, isOrWasLayoutRunning, isWidgetVisible, onBeforeDoLayout, onLoad, onResize, onResize
add, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, adjustIndex, adopt, checkIndexBoundsForInsertion, clear, disable, doAttachChildren, doDetachChildren, doPhysicalAttach, doPhysicalDetach, enable, ensureGroupingHandlerRegistration, findWidget, getChildren, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, onWidgetHide, onWidgetShow, orphan, remove, remove, remove
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disableContextMenu, disableEvents, enableEvents, fireCancellableEvent, fireEvent, focus, getData, getElement, getFocusEl, getFocusSupport, getGestureRecognizer, getGestureRecognizerCount, 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, onAfterFirstAttach, onAttach, onBlur, onBrowserEvent, onDetach, onDisable, onEnable, onHide, onHideContextMenu, onPosition, onRightClick, onShow, onShowContextMenu, onTouch, onUnload, 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, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
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 spacingprotected void onInsert(int index, Widget child)
onInsert
in class HBoxLayoutContainer
Copyright © 2018. All rights reserved.