Class CmsSimpleFormFieldPanel
- 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.CmsSimpleFormFieldPanel
-
- 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
,I_CmsTruncable
public class CmsSimpleFormFieldPanel extends A_CmsFormFieldPanel
A simple form field container widget.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<I_CmsFormField>
m_fields
The list of form fields.-
Fields inherited from class org.opencms.gwt.client.ui.input.form.A_CmsFormFieldPanel
m_infoWidget, m_truncationMetricsKey, m_truncationWidth, NO_DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description CmsSimpleFormFieldPanel()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefaultGroup()
Returns the default group name.void
renderFields(java.util.Collection<I_CmsFormField> fields)
Renders a collection of fields.void
truncate(java.lang.String textMetricsKey, int clientWidth)
Truncates long text and sets the original text to the title attribute.-
Methods inherited from class org.opencms.gwt.client.ui.input.form.A_CmsFormFieldPanel
createRow, createRow, createRow, getInfoWidget, rerenderFields, setBorder, storeTruncation, truncatePanel
-
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
-
m_fields
protected java.util.List<I_CmsFormField> m_fields
The list of form fields.
-
-
Constructor Detail
-
CmsSimpleFormFieldPanel
public CmsSimpleFormFieldPanel()
Creates a new instance.
-
-
Method Detail
-
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()
-
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)
-
truncate
public void truncate(java.lang.String textMetricsKey, int clientWidth)
Description copied from interface:I_CmsTruncable
Truncates long text and sets the original text to the title attribute.- Parameters:
textMetricsKey
- the key identifying the text metrics to useclientWidth
- the width to use in pixels- See Also:
I_CmsTruncable.truncate(java.lang.String, int)
-
-