public class ButtonToolbar extends DivWidget
<b:ButtonToolbar>
<b:ButtonGroup>
<b:Button>1</b:Button>
<b:Button>2</b:Button>
<b:Button>3</b:Button>
</b:ButtonGroup>
<b:Button>4</b:Button>
<b:Button>5</b:Button>
<b:DropdownButton text="6">
<b:NavLink>Some NavLink</b:NavLink>
<b:NavLink>Another NavLink</b:NavLink>
</b:DropdownButton>
<b:SplitDropdownButton text="7">
<b:NavLink>Some NavLink</b:NavLink>
<b:NavLink>Another NavLink</b:NavLink>
</b:SplitDropdownButton>
</b:ButtonToolbar>
Button,
ButtonGroup,
DropdownButton,
SplitDropdownButtonUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledInsertPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
ButtonToolbar()
Creates an empty toolbar.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Widget widget)
Adds a new widget to the toolbar.
|
protected boolean |
canBeAdded(Widget widget)
This method decides whether a widget can be added to the toolbar or not.
|
addStyle, getId, pullRight, removeStyle, setHideOn, setId, setPullRight, setShowOn, setStyleadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removepublic ButtonToolbar()
public void add(Widget widget)
add in interface HasWidgetsadd in interface InsertPaneladd in class FlowPanelwidget - the widget to be addedprotected boolean canBeAdded(Widget widget)
Override it to allow other than the default widgets.
widget - the widget that should be added to the toolbar.true if the widget can be added to the toolbar.Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.