public class AccordionGroup extends DivWidget implements HasIcon, HasVisibility, HasVisibleHandlers
Please see Accordion
Accordion,
Collapse,
CollapseTrigger,
Twitter Bootstrap documentcom.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
AccordionGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w) |
void |
addCustomTrigger(com.google.gwt.user.client.ui.Widget w)
Add a widget to trigger anchor
|
com.google.gwt.event.shared.HandlerRegistration |
addHiddenHandler(HiddenHandler handler)
Adds a
HiddenEvent handler. |
com.google.gwt.event.shared.HandlerRegistration |
addHideHandler(HideHandler handler)
Adds a
HideEvent handler. |
com.google.gwt.event.shared.HandlerRegistration |
addShowHandler(ShowHandler handler)
Adds a
ShowEvent handler. |
com.google.gwt.event.shared.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(com.google.gwt.user.client.ui.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, setStyleadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, setParent, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic DivWidget getHeading()
public IconAnchor getTrigger()
public void setIcon(IconType type)
public void setBaseIcon(BaseIconType type)
setBaseIcon in interface HasIconpublic void setIconSize(IconSize size)
Default is DEFAULT.
setIconSize in interface HasIconsize - the new size.public void setParent(String parent)
public com.google.gwt.event.shared.HandlerRegistration addHideHandler(HideHandler handler)
HideEvent handler.addHideHandler in interface HasVisibleHandlershandler - the hide handlerHandlerRegistration used to remove this handlerpublic com.google.gwt.event.shared.HandlerRegistration addHiddenHandler(HiddenHandler handler)
HiddenEvent handler.addHiddenHandler in interface HasVisibleHandlershandler - the hidden handlerHandlerRegistration used to remove this handlerpublic com.google.gwt.event.shared.HandlerRegistration addShowHandler(ShowHandler handler)
ShowEvent handler.addShowHandler in interface HasVisibleHandlershandler - the show handlerHandlerRegistration used to remove this handlerpublic com.google.gwt.event.shared.HandlerRegistration addShownHandler(ShownHandler handler)
ShownEvent handler.addShownHandler in interface HasVisibleHandlershandler - 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(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in interface com.google.gwt.user.client.ui.InsertPaneladd in class com.google.gwt.user.client.ui.FlowPanelpublic void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.FlowPanelpublic boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.ComplexPanel@UiChild(limit=1,
tagname="customTrigger")
public void addCustomTrigger(com.google.gwt.user.client.ui.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 HasIconpublic void setIconPosition(IconPosition position)
setIconPosition in interface HasIconposition - icon's positionCopyright © 2016. All rights reserved.