Class FieldGroup

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, Component, Ordered, ScriptEventSupport, Field, LifecycleElement, org.springframework.core.Ordered

public class FieldGroup extends FieldBase
Field that contains a nested Group. Can be used to group together fields by providing a group without header and footer, or simply to nest full groups. The items getter/setter provided is for convenience and will set the items List in the nested Group
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • FieldGroup

      public FieldGroup()
  • Method Details

    • performInitialization

      public void performInitialization(Object model)
      The following initialization is performed:
      • Set the align on group if empty and the align has been set on the field
      The following updates are done here:
      • Invoke performInitialize on component modifiers
      Initializes the component

      Where components can set defaults and setup other necessary state. The initialize method should only be called once per component lifecycle and is invoked within the initialize phase of the view lifecylce.

      Specified by:
      performInitialization in interface LifecycleElement
      Overrides:
      performInitialization in class ComponentBase
      Parameters:
      model - - object instance containing the view data
      See Also:
    • afterEvaluateExpression

      public void afterEvaluateExpression()
      No-op implementation. Override for custom behavior in subclasses. Invoked by the view lifecycle after expressions are evaluated at the apply model phase.

      In general, this method is preferred to LifecycleElement.performApplyModel(Object, LifecycleElement) for populating model data via code, since it is called before client-side state is synchronize.

      Specified by:
      afterEvaluateExpression in interface Component
      Overrides:
      afterEvaluateExpression in class FieldBase
    • performFinalize

      public void performFinalize(Object model, LifecycleElement parent)
      Description copied from class: FieldBase
      The following finalization is performed:
      • Set the labelForComponentId to this component id
      • Set the label text on the label field from the field's label property
      • Set the render property on the label's required message field if this field is marked as required
      The following finalization is done here:
      • progressiveRender and conditionalRefresh variables are processed if set
      • If any of the style properties were given, sets the style string on the style property
      • Set the skipInTabOrder flag for nested components
      The last phase before the view is rendered

      Here final preparations can be made based on the updated view state.

      Specified by:
      performFinalize in interface LifecycleElement
      Overrides:
      performFinalize in class FieldBase
      Parameters:
      model - - top level object containing the data
      parent - - parent component
    • getGroup

      public Group getGroup()
      Group instance that is contained within in the field
      Returns:
      Group instance
    • setGroup

      public void setGroup(Group group)
      Setter for the field's nested group
      Parameters:
      group -
    • getItems

      @ViewLifecycleRestriction public List<? extends Component> getItems()
      List of Component instances contained in the nested group

      Convenience method for configuration to get the items List from the field's nested group

      Returns:
      Listinvalid input: '<'? extends Component> items
    • setItems

      public void setItems(List<? extends Component> items)
      Setter for the field's nested group items

      Convenience method for configuration to set the items List for the field's nested group

      Parameters:
      items -