Class A_CmsFormFieldPanel

    • 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
      protected CmsListItemWidget m_infoWidget
      The info widget.
      static java.lang.String NO_DESCRIPTION  
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected CmsFormRow createRow​(java.lang.String labelText, java.lang.String description, com.google.gwt.user.client.ui.Widget widget)
      Creates a form row.
      protected CmsFormRow createRow​(java.lang.String labelText, java.lang.String description, com.google.gwt.user.client.ui.Widget widget, java.lang.String infoText, boolean infoIsHtml)
      Adds a new row with a given label and input widget to the form.
      protected CmsFormRow createRow​(I_CmsFormField field)
      Helper method for creating a form row widget.
      abstract java.lang.String getDefaultGroup()
      Returns the default group name.
      CmsListItemWidget getInfoWidget()
      Returns the info widget.
      abstract void renderFields​(java.util.Collection<I_CmsFormField> fields)
      Renders a collection of fields.
      void rerenderFields​(java.lang.String group, java.util.Collection<I_CmsFormField> fieldsInGroup)
      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
    • Method Detail

      • getDefaultGroup

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

        Returns:
        the default group name
      • renderFields

        public abstract void renderFields​(java.util.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​(java.lang.String group,
                                   java.util.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​(java.lang.String labelText,
                                       java.lang.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​(java.lang.String labelText,
                                       java.lang.String description,
                                       com.google.gwt.user.client.ui.Widget widget,
                                       java.lang.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