Package org.opencms.gwt.client.ui
Class CmsFieldSet
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.CmsFieldSet
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasCloseHandlers<CmsFieldSet>,com.google.gwt.event.logical.shared.HasOpenHandlers<CmsFieldSet>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>
public class CmsFieldSet
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.HasOpenHandlers<CmsFieldSet>, com.google.gwt.event.logical.shared.HasCloseHandlers<CmsFieldSet>, com.google.gwt.user.client.ui.HasWidgets
A panel that behaves like a HTML fieldset.
- Since:
- 8.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceThe ui-binder interface for this composite.Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault animation duration.protected com.google.gwt.user.client.ui.FlowPanelThe content of the fieldset.protected com.google.gwt.user.client.ui.FlowPanelThe wrapping panel for this fieldset.protected CmsLabelThe legend of the fieldset.protected booleanSignals whether the fieldset is opened.protected CmsPushButtonThe image for the top and bottom arrow.protected com.google.gwt.user.client.ui.FlowPanelThe legend of the fieldset.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(com.google.gwt.user.client.ui.Widget widget) com.google.gwt.event.shared.HandlerRegistrationaddCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<CmsFieldSet> handler) voidaddContent(com.google.gwt.user.client.ui.Widget w) Adds a widget to this field set.com.google.gwt.event.shared.HandlerRegistrationaddOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<CmsFieldSet> handler) voidclear()com.google.gwt.user.client.ui.FlowPanelReturns the content panel.intReturns the count of widgets inside this fieldset.com.google.gwt.user.client.ui.FlowPanelReturns the wrapper.protected voidhandleClick(com.google.gwt.event.dom.client.ClickEvent e) Adds a click handler to the image icon of this fieldset.booleanisOpen()Returns if the fieldset is opened.Iterator<com.google.gwt.user.client.ui.Widget> iterator()booleanremove(com.google.gwt.user.client.ui.Widget widget) voidsetAnimationDuration(int animDuration) Sets the animation duration.voidSets the text for the legend of this field set.voidsetOpen(boolean open) Sets the fieldset open, showing the content.voidsetOpenerVisible(boolean visible) Sets the opener visible.Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
DEFAULT_ANIMATION_DURATION
Default animation duration.- See Also:
-
m_content
The content of the fieldset. -
m_fieldset
The wrapping panel for this fieldset. -
m_opener
The image for the top and bottom arrow. -
m_legend
The legend of the fieldset. -
m_opened
Signals whether the fieldset is opened. -
m_wrapper
The legend of the fieldset.
-
-
Constructor Details
-
CmsFieldSet
public CmsFieldSet()Default constructor.Because this class has a default constructor, it can be used as a binder template. In other words, it can be used in other *.ui.xml files:
-
-
Method Details
-
add
- Specified by:
addin interfacecom.google.gwt.user.client.ui.HasWidgets- See Also:
-
addContent
Adds a widget to this field set.- Parameters:
w- the widget to add
-
clear
- Specified by:
clearin interfacecom.google.gwt.user.client.ui.HasWidgets- See Also:
-
getContentPanel
Returns the content panel.- Returns:
- the content panel
-
getWidgetCount
Returns the count of widgets inside this fieldset.- Returns:
- the count of widgets inside this fieldset
-
getWrapper
Returns the wrapper.- Returns:
- the wrapper
-
isOpen
Returns if the fieldset is opened.- Returns:
trueif the fieldset is opened
-
iterator
-
remove
- Specified by:
removein interfacecom.google.gwt.user.client.ui.HasWidgets- See Also:
-
setAnimationDuration
Sets the animation duration.- Parameters:
animDuration- the animation duration
-
setLegend
Sets the text for the legend of this field set.- Parameters:
legendText- the legend text
-
setOpen
Sets the fieldset open, showing the content.- Parameters:
open-trueto open the fieldset
-
setOpenerVisible
Sets the opener visible.- Parameters:
visible-trueto set the opener visible
-
handleClick
Adds a click handler to the image icon of this fieldset.On click the
- Parameters:
e- the event
-