com.alkacon.geranium.client.ui
public class FieldSet extends com.google.gwt.user.client.ui.Composite implements com.google.gwt.event.logical.shared.HasOpenHandlers<FieldSet>, com.google.gwt.event.logical.shared.HasCloseHandlers<FieldSet>
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
FieldSet.I_CmsFieldSetUiBinder
The ui-binder interface for this composite.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ANIMATION_DURATION
Default animation duration.
|
protected com.google.gwt.user.client.ui.FlowPanel |
m_content
The content of the fieldset.
|
protected com.google.gwt.user.client.ui.FlowPanel |
m_fieldset
The wrapping panel for this fieldset.
|
protected com.google.gwt.user.client.ui.Image |
m_image
The image for the top and bottom arrow.
|
protected Label |
m_legend
The legend of the fieldset.
|
protected boolean |
m_opened
Signals whether the fieldset is opened.
|
protected com.google.gwt.user.client.ui.FlowPanel |
m_wrapper
The legend of the fieldset.
|
| Constructor and Description |
|---|
FieldSet()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<FieldSet> handler) |
void |
addContent(com.google.gwt.user.client.ui.Widget w)
Adds a widget to this field set.
|
com.google.gwt.event.shared.HandlerRegistration |
addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<FieldSet> handler) |
com.google.gwt.user.client.ui.FlowPanel |
getContentPanel()
Returns the content panel.
|
int |
getWidgetCount()
Returns the count of widgets inside this fieldset.
|
com.google.gwt.user.client.ui.FlowPanel |
getWrapper()
Returns the wrapper.
|
protected void |
handleClick(com.google.gwt.event.dom.client.ClickEvent e)
Adds a click handler to the image icon of this fieldset.
|
boolean |
isOpen()
Returns if the fieldset is opened.
|
void |
setAnimationDuration(int animDuration)
Sets the animation duration.
|
void |
setLegend(java.lang.String legendText)
Sets the text for the legend of this field set.
|
void |
setOpen(boolean open)
Sets the fieldset open, showing the content.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, toString, unsinkEventspublic static final int DEFAULT_ANIMATION_DURATION
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_content
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_fieldset
@UiField protected com.google.gwt.user.client.ui.Image m_image
@UiField protected Label m_legend
protected boolean m_opened
@UiField protected com.google.gwt.user.client.ui.FlowPanel m_wrapper
public FieldSet()
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:
public com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<FieldSet> handler)
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlers<FieldSet>HasCloseHandlers.addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler)public void addContent(com.google.gwt.user.client.ui.Widget w)
w - the widget to addpublic com.google.gwt.event.shared.HandlerRegistration addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<FieldSet> handler)
addOpenHandler in interface com.google.gwt.event.logical.shared.HasOpenHandlers<FieldSet>HasOpenHandlers.addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler)public com.google.gwt.user.client.ui.FlowPanel getContentPanel()
public int getWidgetCount()
public com.google.gwt.user.client.ui.FlowPanel getWrapper()
public boolean isOpen()
true if the fieldset is openedpublic void setAnimationDuration(int animDuration)
animDuration - the animation durationpublic void setLegend(java.lang.String legendText)
legendText - the legend textpublic void setOpen(boolean open)
open - true to open the fieldset@UiHandler(value="m_image") protected void handleClick(com.google.gwt.event.dom.client.ClickEvent e)
On click the
e - the event