Class A_CmsFormFieldPanel

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
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:
CmsFieldsetFormFieldPanel, CmsInfoBoxFormFieldPanel, CmsPropertyPanel, CmsSimpleFormFieldPanel, CmsUserSettingsFormFieldPanel

public abstract class A_CmsFormFieldPanel extends com.google.gwt.user.client.ui.Composite
The abstract class for form field container widgets.

Since:
8.0.0
  • Nested Class Summary

    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.DebugIdImplEnabled
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The info widget.
    static final String
     

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected CmsFormRow
    createRow(String labelText, String description, com.google.gwt.user.client.ui.Widget widget)
    Creates a form row.
    protected CmsFormRow
    createRow(String labelText, String description, com.google.gwt.user.client.ui.Widget widget, String infoText, boolean infoIsHtml)
    Adds a new row with a given label and input widget to the form.
    protected CmsFormRow
    Helper method for creating a form row widget.
    abstract String
    Returns the default group name.
    Returns the info widget.
    abstract void
    Renders a collection of fields.
    void
    Re-renders the fields of a group.
    protected void
    setBorder(com.google.gwt.user.client.ui.Widget widget)
    Helper method for adding a border to a widget.

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getDefaultGroup

      public abstract String getDefaultGroup()
      Returns the default group name.

      Returns:
      the default group name
    • getInfoWidget

      Returns the info widget.

      Returns:
      the info widget
    • renderFields

      public abstract void renderFields(Collection<I_CmsFormField> fields)
      Renders a collection of fields.

      This should only be called once, when the form is being built.

      Parameters:
      fields - the fields to render
    • rerenderFields

      public void rerenderFields(String group, Collection<I_CmsFormField> fieldsInGroup)
      Re-renders the fields of a group.

      Not supported by all subclasses.

      Parameters:
      group - the group whose fields to re-render
      fieldsInGroup - the fields to re-render
    • createRow

      protected CmsFormRow createRow(I_CmsFormField field)
      Helper method for creating a form row widget.

      Parameters:
      field - the field for which to create a form row
      Returns:
      the newly created form row
    • createRow

      protected CmsFormRow createRow(String labelText, String description, com.google.gwt.user.client.ui.Widget widget)
      Creates a form row.

      Parameters:
      labelText - the label text
      description - the description
      widget - the widget to use
      Returns:
      the new form row
    • createRow

      protected CmsFormRow createRow(String labelText, String description, com.google.gwt.user.client.ui.Widget widget, String infoText, boolean infoIsHtml)
      Adds a new row with a given label and input widget to the form.

      Parameters:
      labelText - the label text for the form field
      description - the description of the form field
      widget - the widget for the form field
      infoText - the text to display on the info icon (may be null)
      infoIsHtml - true if the info text should be interpreted as HTML rather than plain text
      Returns:
      the newly added form row
    • setBorder

      protected void setBorder(com.google.gwt.user.client.ui.Widget widget)
      Helper method for adding a border to a widget.

      Parameters:
      widget - the widget which a border should be added to