All Implemented Interfaces:
Serializable, GIElement<GISection>

@Component public class GISection extends GIElementBase<GISection>
GIElement that represents a intervention group section
Since:
9.2
See Also:
  • Field Details

    • LOG

      protected static final LogChannel LOG
    • registryname

      protected String registryname
    • type

      protected String type
    • min

      protected int min
    • max

      protected int max
    • inputs

      protected Map<String,GIElement<?>> inputs
    • childSections

      protected List<GISection> childSections
    • notNullInputs

      protected List<GIInput> notNullInputs
    • formVisibleInputs

      protected List<GIInput> formVisibleInputs
    • formVisibleSections

      protected List<GISection> formVisibleSections
  • Constructor Details

    • GISection

      public GISection()
  • Method Details

    • setENABLEAUTOFILL

      public void setENABLEAUTOFILL(String s)
      Sets the enable auto fill property
      Parameters:
      s - the enable auto fill property
    • setREGISTRYNAME

      public void setREGISTRYNAME(String s)
      Sets the section registry name
      Parameters:
      s - the section registry name
    • setTYPE

      public void setTYPE(String s)
      Sets the section type
      Parameters:
      s - the section type
    • setMIN

      public void setMIN(String s)
      Sets the section minimum value
      Parameters:
      s - the section minimum value
    • setMAX

      public void setMAX(String s)
      Sets the section maximum value
      Parameters:
      s - the section maximum value
    • getRegistryname

      public String getRegistryname()
      Gets the section registry name
      Returns:
      the section registry name
    • getType

      public String getType()
      Gets the section type
      Returns:
      the section type
    • getMin

      public int getMin()
      Gets section minimum value
      Returns:
      section minimum value
    • getMax

      public int getMax()
      Gets the section maximum value
      Returns:
      section maximum value
    • setAttributes

      public void setAttributes(GISection secFrom)
      Copy the attributes of the given section to this section
      Parameters:
      secFrom - the starting section
    • getChild

      public <T extends GIElement> T getChild(String name)
      Gets the section child that match the given name
      Type Parameters:
      T - the type of the child element
      Parameters:
      name - the name of the child element
      Returns:
      the section child with the given name if exists, null otherwise.
    • getInputConfig

      public GIInput getInputConfig(String name)
      Gets the input configuration with the given name
      Parameters:
      name - the name of the input configuration to find
      Returns:
      the input configuration with the given name
    • getInputConfig

      public GIInput getInputConfig(int position)
      Gets the input configuration in the given position
      Parameters:
      position - the position of the input configuration to find
      Returns:
      the input configuration in the given position
    • addChild

      public void addChild(UINode n)
      Description copied from class: UINode
      Empty method
      Overrides:
      addChild in class UINode
      Parameters:
      n - Not used
    • toXMLString

      public String toXMLString()
      Description copied from interface: GIElement
      Serialize the element in an XML string
      Returns:
      the XML string that represents this element
    • getXMLMinMaxAttribute

      protected String getXMLMinMaxAttribute()
    • getValues

      public HashGetter getValues()
    • getChildSections

      public List<GISection> getChildSections()
      Gets the list of section children
      Returns:
      the list of section children
    • getSection

      public GISection getSection(String name)
      Gets the required section by name
      Parameters:
      name - the section name to retrieve
      Returns:
      the section with the required name
    • collectSections

      protected void collectSections()
      Collect all the GISection defined inside this one
    • getNotNullInputConfig

      public GIInput getNotNullInputConfig(String name)
      Gets the input configuration with the required name
      Parameters:
      name - the name of the required input configuration
      Returns:
      the input configuration with the required name
    • collectNotNullInputs

      protected void collectNotNullInputs()
      Collect all the not null input inside this section
    • isFormInputVisible

      public boolean isFormInputVisible(String name)
      Gets the visibility of the input with the given name
      Parameters:
      name - the name of the input for which retrieve the visibility
      Returns:
      the visibility of the input with the given name
    • getFormInputStatus

      public Long getFormInputStatus(String name)
      Gets the status of the input with the given name.
      Parameters:
      name - the name of the input for which retrieve the status
      Returns:
      the status of the input with the given name
    • getInputLabel

      public String getInputLabel(String name)
      Gets the label of the input with the given name
      Parameters:
      name - the name of the input for which retrieve the label
      Returns:
      the label of the input with the given name
    • isFormSectionVisible

      public boolean isFormSectionVisible(String name)
      Gets the visibility of the section with the given name
      Parameters:
      name - the section name
      Returns:
      true if the section is visible, false otherwise
    • collectFormVisibleInputs

      protected void collectFormVisibleInputs()
      Collect the visible children inputs
    • collectFormVisibleSections

      protected void collectFormVisibleSections()
      Collect all the visible children sections
    • setDeepStatus

      public void setDeepStatus(String s)
      Sets recursively the status value
      Parameters:
      s - the status value to set
    • setDeepAutofill

      public void setDeepAutofill(String s)
      Sets recursively the auto fill value
      Parameters:
      s - the auto fill value to set
    • getIcon

      public String getIcon()
      Description copied from interface: GIElement
      Gets the element icon
      Returns:
      the element icon
    • isEnableAutoFill

      public boolean isEnableAutoFill()
      Gets the enable auto fill value
      Returns:
      true if the auto fill is enabled, false otherwise
    • addCustomValues

      protected void addCustomValues(HashGetter values)
      Hook to append custom values to the section values
      Parameters:
      values - the values of this section
    • appendCustomAttributesToXml

      protected void appendCustomAttributesToXml(StringBuilder sb)
      Hook to append custom attributes to resulting XML
      Parameters:
      sb - the string builder used to build the section XML