Class StringHelper

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified, Tool

@Component public class StringHelper extends Component
Component publishing a xml file resource containing a list of useful strings. The xml file to be passed as an attribute FILE must contain a list of tags of the form <p name="the name of the string" type="the type" default="a default value" tbr="2023W1" > <![CDATA[ the helping description of the string ]]> </p> Only the name is mandatory. The other attributes are optional. Moreover, the name is draggable over inputs or textareas over the page.
See Also:
  • Constructor Details

    • StringHelper

      public StringHelper()
  • Method Details

    • setFILE

      public void setFILE(String s)
      Sets an xml file.
      Parameters:
      s - Path of the xml file to set.
    • setXml

      public void setXml(XMLTree x)
      Sets a XMLTree.
      Parameters:
      x - The XMLTree to set.
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Description copied from class: Component
      Abstract method that must be extended and returns the html code of the Component
      Specified by:
      getHtml in class Component
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html of the Component
    • addIntro

      protected void addIntro(org.apache.ecs.ElementContainer ec)
    • addIntro

      protected void addIntro(org.apache.ecs.ElementContainer ec, boolean addHR)
      Adds an intro section.
      Parameters:
      ec - ElementContainer to which the intro is added.
      addHR - if true, a horizontal line is added at the bottom.
    • addRow

      protected void addRow(org.apache.ecs.html.DL dl, XMLTree x)
      Adds a property entry.
      Parameters:
      dl - Element the new row is added to.
      x - XMLTree containing the info to be added.