public abstract class AbstractButtonGroup extends FlowPanel implements HasName, HasSize<ButtonGroupSize>, HasDataToggle, HasJustified, HasPull, HasResponsiveness
ButtonGroup
,
VerticalButtonGroup
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_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, setId
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, 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, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
forEach, spliterator
protected AbstractButtonGroup(String styleName)
public void setName(String name)
setName
in interface HasName
name
- Name of groupadd(com.google.gwt.user.client.ui.Widget)
public void setSize(ButtonGroupSize size)
HasSize
setSize
in interface HasSize<ButtonGroupSize>
size
- T size of the widgetpublic ButtonGroupSize getSize()
HasSize
getSize
in interface HasSize<ButtonGroupSize>
public void setDataToggle(Toggle toggle)
HasDataToggle
setDataToggle
in interface HasDataToggle
toggle
- Toggle toggle attributepublic Toggle getDataToggle()
HasDataToggle
getDataToggle
in interface HasDataToggle
public void setJustified(boolean justified)
AnchorButton
child elements!setJustified
in interface HasJustified
justified
- Stretch button grouppublic boolean isJustified()
isJustified
in interface HasJustified
public void setVisibleOn(DeviceSize deviceSize)
HasResponsiveness
setVisibleOn
in interface HasResponsiveness
setVisibleOn
in class FlowPanel
deviceSize
- device sizeDeviceSize
public void setHiddenOn(DeviceSize deviceSize)
HasResponsiveness
setHiddenOn
in interface HasResponsiveness
setHiddenOn
in class FlowPanel
deviceSize
- device sizesDeviceSize
public void setDropUp(boolean dropUp)
dropUp
- display up or notpublic void add(Widget w)
add
in interface HasWidgets
add
in interface InsertPanel
add
in class FlowPanel
Copyright © 2017. All rights reserved.