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
,
SplitDropdownButton
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_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, setStyle
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, 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, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
public ButtonToolbar()
public void add(Widget widget)
add
in interface HasWidgets
add
in interface InsertPanel
add
in class FlowPanel
widget
- 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.