Class CmsFieldsetFormFieldPanel
- 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.input.form.A_CmsFormFieldPanel
-
- org.opencms.gwt.client.ui.input.form.CmsFieldsetFormFieldPanel
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,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.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
- Direct Known Subclasses:
CmsElementSettingsDialog.FieldPanel
public class CmsFieldsetFormFieldPanel extends A_CmsFormFieldPanel
Form field panel which puts its form fields into a field set, and also displays a resource info box.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<I_CmsFormField>
m_fields
The list of form fields.static java.lang.String
TM_INFOBOX
Text metrics key for the info box.-
Fields inherited from class org.opencms.gwt.client.ui.input.form.A_CmsFormFieldPanel
m_infoWidget, NO_DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description CmsFieldsetFormFieldPanel(org.opencms.gwt.shared.CmsListInfoBean info, java.lang.String legend)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroupFieldSet(java.lang.String group, CmsFieldSet fieldSet)
Adds a group specific field set.java.lang.String
getDefaultGroup()
Returns the default group name.CmsFieldSet
getFieldSet()
Returns the main field set.com.google.gwt.user.client.ui.FlowPanel
getMainPanel()
Gets the main panel.void
renderFields(java.util.Collection<I_CmsFormField> fields)
Renders a collection of fields.-
Methods inherited from class org.opencms.gwt.client.ui.input.form.A_CmsFormFieldPanel
createRow, createRow, createRow, getInfoWidget, rerenderFields, setBorder
-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods 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, unsinkEvents
-
Methods 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, toString
-
-
-
-
Field Detail
-
TM_INFOBOX
public static java.lang.String TM_INFOBOX
Text metrics key for the info box.
-
m_fields
protected java.util.List<I_CmsFormField> m_fields
The list of form fields.
-
-
Constructor Detail
-
CmsFieldsetFormFieldPanel
public CmsFieldsetFormFieldPanel(org.opencms.gwt.shared.CmsListInfoBean info, java.lang.String legend)
Creates a new instance.- Parameters:
info
- the bean used to display the info itemlegend
- the legend for the field set
-
-
Method Detail
-
addGroupFieldSet
public void addGroupFieldSet(java.lang.String group, CmsFieldSet fieldSet)
Adds a group specific field set.- Parameters:
group
- the group idfieldSet
- the field set
-
getDefaultGroup
public java.lang.String getDefaultGroup()
Description copied from class:A_CmsFormFieldPanel
Returns the default group name.- Specified by:
getDefaultGroup
in classA_CmsFormFieldPanel
- Returns:
- the default group name
- See Also:
A_CmsFormFieldPanel.getDefaultGroup()
-
getFieldSet
public CmsFieldSet getFieldSet()
Returns the main field set.- Returns:
- the main field set
-
getMainPanel
public com.google.gwt.user.client.ui.FlowPanel getMainPanel()
Gets the main panel.- Returns:
- the main panel
-
renderFields
public void renderFields(java.util.Collection<I_CmsFormField> fields)
Description copied from class:A_CmsFormFieldPanel
Renders a collection of fields.This should only be called once, when the form is being built.
- Specified by:
renderFields
in classA_CmsFormFieldPanel
- Parameters:
fields
- the fields to render- See Also:
A_CmsFormFieldPanel.renderFields(java.util.Collection)
-
-