public abstract class AbstractButtonGroup extends FlowPanel implements HasName, HasSize<ButtonGroupSize>, HasDataToggle, HasJustified, HasPull, HasResponsiveness
ButtonGroup,
VerticalButtonGroupUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledInsertPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
AbstractButtonGroup(String styleName) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Widget w) |
Toggle |
getDataToggle()
Gets the data-toggle attribute on the widget
|
String |
getName() |
Pull |
getPull() |
ButtonGroupSize |
getSize()
Get the size of the widget
|
boolean |
isJustified() |
void |
setDataToggle(Toggle toggle)
Sets the attribute data-toggle on the widget
|
void |
setDropUp(boolean dropUp)
Makes this a "drop up" container for dropdown menus where the menu opens upwards.
|
void |
setHiddenOn(DeviceSize deviceSize)
Sets the devices that the element is hidden on
|
void |
setJustified(boolean justified)
Make a group of buttons stretch at the same size to span the entire width of its parent.
|
void |
setName(String name)
Convenience method that will set the name of all child widgets that can have a name
|
void |
setPull(Pull pull) |
void |
setSize(ButtonGroupSize size)
Set the size of the widget
|
void |
setVisibleOn(DeviceSize deviceSize)
Sets the devices that the element is visible on
|
getDataSpy, getDataTarget, getId, setDataSpy, setDataTarget, setDataTargetWidget, setDataTargetWidgets, setIdadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removeforEach, spliteratorprotected AbstractButtonGroup(String styleName)
public void setName(String name)
setName in interface HasNamename - Name of groupadd(com.google.gwt.user.client.ui.Widget)public void setSize(ButtonGroupSize size)
HasSizesetSize in interface HasSize<ButtonGroupSize>size - T size of the widgetpublic ButtonGroupSize getSize()
HasSizegetSize in interface HasSize<ButtonGroupSize>public void setDataToggle(Toggle toggle)
HasDataTogglesetDataToggle in interface HasDataToggletoggle - Toggle toggle attributepublic Toggle getDataToggle()
HasDataTogglegetDataToggle in interface HasDataTogglepublic void setJustified(boolean justified)
AnchorButton child elements!setJustified in interface HasJustifiedjustified - Stretch button grouppublic boolean isJustified()
isJustified in interface HasJustifiedpublic void setVisibleOn(DeviceSize deviceSize)
HasResponsivenesssetVisibleOn in interface HasResponsivenesssetVisibleOn in class FlowPaneldeviceSize - device sizeDeviceSizepublic void setHiddenOn(DeviceSize deviceSize)
HasResponsivenesssetHiddenOn in interface HasResponsivenesssetHiddenOn in class FlowPaneldeviceSize - device sizesDeviceSizepublic void setDropUp(boolean dropUp)
dropUp - display up or notpublic void add(Widget w)
add in interface HasWidgetsadd in interface InsertPaneladd in class FlowPanelCopyright © 2017. All rights reserved.