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
Modifier and Type | Field and Description |
---|---|
protected int |
horizontalSpacing |
protected int |
minButtonWidth |
protected int |
verticalSpacing |
enableOverflow, handlerRegistration, hasOverflow, hBoxLayoutAlign, hiddens, logger, loopHeightMap, loopWidthMap, more, moreMenu, moreMenuEnableScrolling, moreMenuItems, PROVIDE_MENU_TEXT_DATA_KEY, triggerWidth, widthMap
adjustForFlexRemainder, appearance, pack, padding, scrollOffset
forceLayoutCommand, forceLayoutOnResize, hadLayoutRunning, layoutCommand, layoutRequiredThisEventLoop, layoutRunning
children, widgetMap
adjustSize, allowTextSelection, cacheSizes, contextMenu, contextMenuGestureRecognizer, dataMap, deferHeight, disableContextMenu, disabled, disabledStyle, disableEvents, ensureVisibilityOnSizing, focusManagerSupport, gestureRecognizers, height, hidden, hideMode, itemId, lastSize, layer, left, mask, maskMessage, monitorWindowResize, overElements, pageX, pageY, resizeHandler, shadow, shadowPosition, shim, stateful, stateId, 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).
|
protected void |
setSpacingLayoutData(Widget child) |
void |
setVerticalSpacing(int spacing)
Sets the vertical spacing between child items (defaults to 0).
|
add, add, add, add, add, add, addMenuItem, addMenuItemToMoreMenu, addMenuItemToMoreMenuSeparatorItem, addOverflowHandler, addWidgetToMenu, addWidgetToMenuButtonGroup, addWidgetToMenuFromMoreMenuItemsMap, addWidgetToMenuLabelToolItem, addWidgetToMenuSplitButton, addWidgetToMenuTextButton, addWidgetToMenuToggleButton, addWithMenu, addWithMenu, addWithUiBinder, afterAddWidgetToMenu, clearMenu, doLayout, getHBoxLayoutAlign, getWidgetWidth, hideComponent, initMore, insert, isEnableOverflow, isHidden, isMoreMenuEnableScrolling, onBeforeShow, onOverflow, onRemove, onUnoverflow, remove, setEnableOverflow, setHBoxLayoutAlign, setMoreMenuEnableScrolling, unhideComponent
getContainerTarget, getPack, getPadding, getScrollOffset, insert, isAdjustForFlexRemainder, setAdjustForFlexRemainder, setPack, setPadding, setScrollOffset
applyLayout, applyLayout, forceLayout, forceLayoutOnChildren, forceLayoutOnChildren, getLeftRightMargins, getParentLayoutWidget, getSideMargins, getTopBottomMargins, isLayoutRunning, isOrWasLayoutRunning, isParentLayoutRunning, isWidgetVisible, onBeforeDoLayout, onLoad, onResize, onResize, parentIsOrWasLayoutRunning
addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, adjustIndex, adopt, checkIndexBoundsForInsertion, clear, disable, doAttachChildren, doDetachChildren, doPhysicalAttach, doPhysicalDetach, enable, ensureGroupingHandlerRegistration, findWidget, getAttachException, getChildren, getDetachException, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, onWidgetHide, onWidgetShow, orphan
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, isAdjustSize, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, makeVisible, mask, mask, notifyHide, notifyShow, onAfterFirstAttach, onAttach, onBlur, onBrowserEvent, onDetach, onDisable, onEnable, onHide, onHideContextMenu, onPosition, onRightClick, onShow, onShowContextMenu, onTouch, onUnload, onWindowResize, removeGestureRecognizer, removeStyleDependentName, removeStyleOnOver, removeToolTip, restoreVisible, setAdjustSize, 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
protected int minButtonWidth
protected int verticalSpacing
protected int horizontalSpacing
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
protected void setSpacingLayoutData(Widget child)
Copyright © 2020. All rights reserved.