Class AbstractComponentContainer

All Implemented Interfaces:
Component, ComponentContainer, CompositeComponent, Cloneable
Direct Known Subclasses:
ColumnImpl, FieldSetImpl

public abstract class AbstractComponentContainer extends AbstractCompositeComponent implements ComponentContainer
Base implementation of ComponentContainer which contains all shared attributed.
  • Field Details

    • readonly

      protected boolean readonly
    • hidden

      protected boolean hidden
    • ignoreCopy

      protected boolean ignoreCopy
    • useLabel

      protected UseLabel useLabel
  • Constructor Details

    • AbstractComponentContainer

      public AbstractComponentContainer()
  • Method Details

    • isReadonly

      public boolean isReadonly()
      Description copied from interface: ComponentContainer
      If `true`, the component will be read only.
      Specified by:
      isReadonly in interface ComponentContainer
    • setReadonly

      public void setReadonly(boolean readonly)
    • isHidden

      public boolean isHidden()
      Description copied from interface: ComponentContainer
      If `true`, the column will not be displayed.
      Specified by:
      isHidden in interface ComponentContainer
    • setHidden

      public void setHidden(boolean hidden)
    • getUseLabel

      public UseLabel getUseLabel()
      Description copied from interface: ComponentContainer
      - `yes`, the label will be displayed. - `no`, no label will be displayed (but space for label is kept intact - `hide`, the label area is hidden
      Specified by:
      getUseLabel in interface ComponentContainer
    • setUseLabel

      public void setUseLabel(UseLabel useLabel)
    • isIgnoreCopy

      public boolean isIgnoreCopy()
      Description copied from interface: ComponentContainer
      If `true`, the field will not be copied in the frontend copy action
      Specified by:
      isIgnoreCopy in interface ComponentContainer
    • setIgnoreCopy

      public void setIgnoreCopy(boolean ignoreCopy)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws ModelBuildException
      Description copied from interface: Component
      Will be called when the form has been built completely. Can be used to validate values (and throw ModelBuildException) or the fill in default value.
      Specified by:
      validate in interface Component
      Overrides:
      validate in class AbstractCompositeComponent
      Throws:
      ModelBuildException
    • getDefaultLabel

      public String getDefaultLabel(Form form, TextResources textResources)
      Return the default label for this component. This will be used when no label is specified explicitly in the form. If no label is found, the method will try to predict the missing label based off the implementation in
      invalid reference
      ComponentContainer#getDefaultFormLabel
      .
      Specified by:
      getDefaultLabel in interface ComponentContainer