Class LoadScript

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

@Component public class LoadScript extends Component
This component extends Component and it's used to execute a JavaScript code when the component is created and/or displayed. The component displayed will be an ELEMENT_NULL.
See Also:
GCApi:
component
  • Field Details

    • _displayscript

      protected String _displayscript
    • _setupscript

      protected String _setupscript
  • Constructor Details

    • LoadScript

      public LoadScript()
  • Method Details

    • setSCRIPT

      public void setSCRIPT(String s)
      Sets the script that will be executed when the component is displayed.
      Parameters:
      s - String containing the script
    • setDISPLAYSCRIPT

      public void setDISPLAYSCRIPT(String s)
      Sets the script that will be executed when the component is displayed.
      Parameters:
      s - String containing the script
    • setSETUPSCRIPT

      public void setSETUPSCRIPT(String s)
      Sets the script that will be executed when the component is created.
      Parameters:
      s - String containing the script
    • 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
    • buildDisplayScript

      public void buildDisplayScript(StringBuilder sb)
      Description copied from class: Component
      Every component can add a script to the StringBuilder, script executed when the component is displayed.
      Overrides:
      buildDisplayScript in class Component
      Parameters:
      sb - The StringBuilder on which we want to add the script
    • buildSetupScript

      public void buildSetupScript(StringBuilder sb)
      Description copied from class: Component
      Every component can add a script to the StringBuilder, script executed when the component is created.
      Overrides:
      buildSetupScript in class Component
      Parameters:
      sb - The StringBuilder on which we want to add the script