public class AccordionGroup extends DivWidget implements HasIcon, HasVisibility, HasVisibleHandlers
Please see Accordion
Accordion
,
Collapse
,
CollapseTrigger
,
Twitter Bootstrap documentUIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
AccordionGroup() |
Modifier and Type | Method and Description |
---|---|
void |
add(Widget w) |
void |
addCustomTrigger(Widget w)
Add a widget to trigger anchor
|
HandlerRegistration |
addHiddenHandler(HiddenHandler handler)
Adds a
HiddenEvent handler. |
HandlerRegistration |
addHideHandler(HideHandler handler)
Adds a
HideEvent handler. |
HandlerRegistration |
addShowHandler(ShowHandler handler)
Adds a
ShowEvent handler. |
HandlerRegistration |
addShownHandler(ShownHandler handler)
Adds a
ShownEvent handler. |
void |
clear() |
DivWidget |
getHeading() |
IconAnchor |
getTrigger() |
void |
hide()
Hides the widget if it was previously shown.
|
boolean |
isDefaultOpen()
is opened on attached.
|
boolean |
remove(Widget w) |
void |
setBaseIcon(BaseIconType type)
Sets the BaseType of the Icon.
|
void |
setCustomIconStyle(String customIconStyle)
Set custom icon style.
|
void |
setDefaultOpen(boolean defaultOpen)
Set is opened on attached.
|
void |
setHeading(String heading) |
void |
setIcon(IconType type)
Sets the Type of the Icon.
|
void |
setIconPosition(IconPosition position)
Set icon position , left or right
|
void |
setIconSize(IconSize size)
Sets the size of the icon.
|
void |
setParent(String parent) |
void |
show()
Shows the widget if it was previously hidden.
|
void |
toggle()
Toggles the view state of the widget.
|
addStyle, getId, pullRight, removeStyle, setHideOn, setId, setPullRight, setShowOn, setStyle
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, 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 AccordionGroup()
public DivWidget getHeading()
public IconAnchor getTrigger()
public void setBaseIcon(BaseIconType type)
setBaseIcon
in interface HasIcon
public void setIconSize(IconSize size)
Default is DEFAULT.
setIconSize
in interface HasIcon
size
- the new size.public HandlerRegistration addHideHandler(HideHandler handler)
HideEvent
handler.addHideHandler
in interface HasVisibleHandlers
handler
- the hide handlerHandlerRegistration
used to remove this handlerpublic HandlerRegistration addHiddenHandler(HiddenHandler handler)
HiddenEvent
handler.addHiddenHandler
in interface HasVisibleHandlers
handler
- the hidden handlerHandlerRegistration
used to remove this handlerpublic HandlerRegistration addShowHandler(ShowHandler handler)
ShowEvent
handler.addShowHandler
in interface HasVisibleHandlers
handler
- the show handlerHandlerRegistration
used to remove this handlerpublic HandlerRegistration addShownHandler(ShownHandler handler)
ShownEvent
handler.addShownHandler
in interface HasVisibleHandlers
handler
- the shown handlerHandlerRegistration
used to remove this handlerpublic void show()
public void hide()
public void toggle()
It will be hidden if it was previously shown and shown if it was previously hidden.
public void add(Widget w)
add
in interface HasWidgets
add
in interface InsertPanel
add
in class FlowPanel
public void clear()
clear
in interface HasWidgets
clear
in class FlowPanel
public boolean remove(Widget w)
remove
in interface HasWidgets
remove
in class ComplexPanel
@UiChild(limit=1, tagname="customTrigger") public void addCustomTrigger(Widget w)
w
- added widgetpublic boolean isDefaultOpen()
public void setDefaultOpen(boolean defaultOpen)
defaultOpen
- true:open false:closepublic void setHeading(String heading)
public void setCustomIconStyle(String customIconStyle)
It sets css class name to <i> tag. You can set any icons style.
setCustomIconStyle
in interface HasIcon
public void setIconPosition(IconPosition position)
setIconPosition
in interface HasIcon
position
- icon's positionCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.