public class Accordion extends DivWidget
It's a container of AccordionGroup
.
<b:Accordion>
<b:AccordionGroup heading="One">
<b:Paragraph>one</b:Paragraph>
<b:Paragraph>two</b:Paragraph>
</b:AccordionGroup>
<b:AccordionGroup heading="Defalut Open" defaultOpen="true">
<b:Paragraph>The default opened Accordion</b:Paragraph>
</b:AccordionGroup>
<b:AccordionGroup defaultOpen="true" heading="With Icon" icon="GITHUB">
<b:Paragraph>Icon style</b:Paragraph>
</b:AccordionGroup>
<b:AccordionGroup heading="With Custom Icon">
<b:customTrigger>
<b:Image addStyleNames="{style.icon}" resource="{res.logo}"/>
</b:customTrigger>
<b:Paragraph>Custom Icon Style</b:Paragraph>
</b:AccordionGroup>
</b:Accordion>
Accordion
,
Collapse
,
CollapseTrigger
,
Twitter Bootstrap documentUIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
Accordion()
Create an empty widget.
|
Modifier and Type | Method and Description |
---|---|
void |
add(IsWidget child) |
void |
add(Widget w) |
addStyle, getId, pullRight, removeStyle, setHideOn, setId, setPullRight, setShowOn, setStyle
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
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
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
public Accordion()
public void add(IsWidget child)
add
in interface HasWidgets.ForIsWidget
add
in interface InsertPanel.ForIsWidget
add
in class Panel
public void add(Widget w)
add
in interface HasWidgets
add
in interface InsertPanel
add
in class FlowPanel
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.