Class AbstractComponent

java.lang.Object
ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
All Implemented Interfaces:
Component, Cloneable
Direct Known Subclasses:
AbstractCompositeComponent, DescriptionImpl, DisplayImpl, FieldImpl, SearchFilterImpl, SubTableImpl, TermsComponentImpl

public abstract class AbstractComponent extends Object implements Component
Base class for components that contains properties shared by all components.
  • Constructor Details

    • AbstractComponent

      public AbstractComponent()
  • Method Details

    • getId

      public String getId()
      Description copied from interface: Component
      Optional id of the component. Can be useful if a component should be referenced.
      Specified by:
      getId in interface Component
    • setId

      public void setId(String id)
    • getLabel

      public String getLabel()
      Description copied from interface: Component
      Returns the label of a component.
      Specified by:
      getLabel in interface Component
    • setLabel

      public void setLabel(String label)
    • getParent

      public Optional<Component> getParent()
      Specified by:
      getParent in interface Component
    • setParent

      public void setParent(@Nullable @Nullable Component parent)
    • getPosition

      @Nullable public @Nullable String getPosition()
      Description copied from interface: Component
      Returns the position of the component within the parent ("top", "bottom", "after:...", or "before: ...").
      Specified by:
      getPosition in interface Component
    • setPosition

      public void setPosition(@Nullable @Nullable String position)
    • clone

      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • getDefaultFormLabel

      @Nullable protected @Nullable String getDefaultFormLabel(Form form, TextResources textResources, String path, boolean forceEvaluation)
      Text resources are searched in the following order: LIST forms: Form: User_list Path: firstname - forms.User_list.table.firstname Other forms: Form: Address_detail Path: relExtranet_user (Parent hierarchy: box1.box1.box1.master_data.relExtranet_user) 1) 'forms.Address_detail.master_data.relExtranet_user' 2) 'forms.Address_detail.relExtranet_user'