Interface SingleUseComponent

All Known Implementing Classes:
Alert, GetUrl, JSCommand, Menu, PostUrl, Ranger, SortableMenu, Tooltip

public interface SingleUseComponent
Interface that must be implemented by all those objects whose creation must be performed each time it is requested to put one of the objects on screen and not once for all. For this reason they are called "single throw", because every time, after they have been used, they are eliminated and the next time you want to use the object it is re-created
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Every component can add a script to the StringBuilder, script executed when the component is created
    org.apache.ecs.Element
    Returns the html code of the component
  • Method Details

    • getHtml

      org.apache.ecs.Element getHtml(EntitySet es, Window w)
      Returns the html code of the component
      Parameters:
      es - The EntitySet to which the element belongs
      w - The Window currently displayed
      Returns:
      The html code of the component
    • buildSetupScript

      void buildSetupScript(StringBuilder sb)
      Every component can add a script to the StringBuilder, script executed when the component is created
      Parameters:
      sb - The StringBuilder on which we want to add the script