java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocallapp.wfm.core.bl.schedule.intervention.outcome.interventiongroup.configuration.GIElementBase<T>
All Implemented Interfaces:
Serializable, GIElement<T>
Direct Known Subclasses:
GIButton, GIInput, GISection

public abstract class GIElementBase<T> extends UINode implements GIElement<T>
Abstract implementation of the GIElement interface to group the base behavior
Since:
9.2
See Also:
  • Constructor Details

    • GIElementBase

      public GIElementBase()
  • Method Details

    • setNAME

      public void setNAME(String name)
      Sets the button name
      Parameters:
      name - the button name
    • setLABEL

      public void setLABEL(String label)
      Sets the button label
      Parameters:
      label - the button label
    • setCustomLabel

      public void setCustomLabel(String customLabel)
      Description copied from interface: GIElement
      Sets the element custom label
      Specified by:
      setCustomLabel in interface GIElement<T>
      Parameters:
      customLabel - the custom label to set
    • setSTATUS

      public void setSTATUS(String status)
      Description copied from interface: GIElement
      Sets the element status
      Specified by:
      setSTATUS in interface GIElement<T>
      Parameters:
      status - the status to set
      See Also:
    • getAutofill

      public String getAutofill()
      Description copied from interface: GIElement
      Gets if the element should be auto filled
      Specified by:
      getAutofill in interface GIElement<T>
      Returns:
      if the element should be auto filled
    • isAutofill

      public boolean isAutofill()
      Gets the auto fill boolean value.
      Returns:
      true if the auto fill is enabled, false otherwise
    • setAUTOFILL

      public void setAUTOFILL(String autofill)
      Sets the auto fill value.
      Parameters:
      autofill - the auto fill value
    • getName

      public String getName()
      Description copied from interface: GIElement
      Gets the element name
      Specified by:
      getName in interface GIElement<T>
      Returns:
      the element name
    • getLabel

      public String getLabel()
      Description copied from interface: GIElement
      Gets the element label
      Specified by:
      getLabel in interface GIElement<T>
      Returns:
      the element label
    • getCustomLabel

      public String getCustomLabel()
      Description copied from interface: GIElement
      Gets the element custom label
      Specified by:
      getCustomLabel in interface GIElement<T>
      Returns:
      the element custom label
    • getStatus

      public String getStatus()
      Description copied from interface: GIElement
      Gets the element status
      Specified by:
      getStatus in interface GIElement<T>
      Returns:
      the element status
    • isReadOnly

      public boolean isReadOnly()
      Says if the element is read only
      Returns:
      true if the element is read only, false otherwise
    • isVisible

      public boolean isVisible()
      Says if the element is visible
      Returns:
      true if the element is visible, false otherwise
    • isMandatory

      public boolean isMandatory()
      Says if the element is mandatory
      Returns:
      true if the element is mandatory
    • getTeacher

      protected Teacher getTeacher()
      Gets a teacher instantiated with the current Identity
      Returns:
      a teacher instantiated with the current Identity
    • checkLabel

      protected void checkLabel()
      Ensure that the custom label is configured
    • getXMLAttributeString

      protected static String getXMLAttributeString(String name, String value)
      Compose the XML attribute with the given name and value
      Parameters:
      name - the name of the attribute
      value - the value of the attribute
      Returns:
      the composed XML attribute
    • getXMLAttributeStringIfExists

      protected static String getXMLAttributeStringIfExists(String name, String value)
      Compose the XML attribute with the given name and value, only if the value is valid
      Parameters:
      name - the name of the attribute
      value - the value of the attribute
      Returns:
      the composed XML attribute
    • cleanString

      protected String cleanString(String s)
      Clean a given string removing spaces and square brackets
      Parameters:
      s - the string to clean
      Returns:
      the cleaned string
    • buildSetfromString

      protected static Set<String> buildSetfromString(String s)
      Build a strings set splitting the given string
      Parameters:
      s - the string to split
      Returns:
      the string set resulting of the split of the given string
    • joinStrings

      protected static String joinStrings(Set<String> input)
      Joins the given set strings in a single string
      Parameters:
      input - the input strings set
      Returns:
      the joined string
    • getBoolean

      protected static boolean getBoolean(String s, boolean def)
      Convert the given string value, to a boolean.
      Parameters:
      s - the string value to parse
      def - the default value
      Returns:
      the boolean value of the given string if convertible, the default value otherwise.