Class TaskBoxMenu

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, EventValidator, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class TaskBoxMenu extends TaskBox implements EventValidator
This class, that extends TaskBox, defines the component to be included inside the TaskBar, which is used to insert the global menu of the application.
See Also:
GCApi:
component
  • Field Details

    • _linkedro

      protected boolean _linkedro
    • _msgSessioneInvalidata

      protected String _msgSessioneInvalidata
    • _msgPercorsoCorrente

      protected String _msgPercorsoCorrente
    • unlicensedModuleMsg

      protected String unlicensedModuleMsg
  • Constructor Details

  • Method Details

    • setup

      protected void setup()
      Description copied from class: Component
      Setup the Component
      Overrides:
      setup in class Component
    • setLINKEDRO

      public void setLINKEDRO(String s)
      Defines if the menu defined by the TaskBoxMenu must be in read only state when the page in which is contained is not the only one in the WindowManager. You can set this attribute to true to prevent that the user navigate out of the page in a way that is not permitted by the logical flow of interaction
      Parameters:
      s - A string that represents a boolean value ("true" or "1", "false" or "0").
      If the string is not recognized as a boolean value, it will be used the default value, that is false
    • getRO

      public boolean getRO()
      Description copied from class: Control
      Returns the read only state of the Control
      Overrides:
      getRO in class Control
      Returns:
      true if the control is read only, false otherwise
    • getFrameHtml

      public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change change, EntitySet es)
      Description copied from interface: AjaxableComponent
      Defines the html part of the element that changes when an Ajax interaction occurs
      Specified by:
      getFrameHtml in interface AjaxableComponent
      Overrides:
      getFrameHtml in class TaskBox
      Parameters:
      change - The Change object that defines the specific morphing type for the element
      es - The EntitySet to which the element belongs
      Returns:
      The html part of the element that changes when an Ajax interaction occurs
    • collectRootAncestor

      protected void collectRootAncestor(List<org.apache.ecs.Element> ancestors)
    • getTopBarHtml

      @Deprecated(since="") public org.apache.ecs.Element getTopBarHtml(EntitySet es)
      Deprecated.
      Returns the html of the menu bar positioned at the top of the page (maintained only for the old versions of the kernel)
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html code of the top bar
    • getTopTabContent

      protected org.apache.ecs.Element getTopTabContent(int menu, String label, String icon, boolean off, boolean ro)
    • validateParams

      public boolean validateParams(UIMessage uim)
      Description copied from interface: EventValidator
      Checks if the parameters are valid or not
      Specified by:
      validateParams in interface EventValidator
      Parameters:
      uim - The UIMessage that contains the parameters that must be validated
      Returns:
      true if the parameters are valid, false otherwise
    • needValueValidation

      public boolean needValueValidation()
      Specified by:
      needValueValidation in interface EventValidator
    • licenseHasModule

      protected boolean licenseHasModule(String module)
    • isLicenseStrict

      protected boolean isLicenseStrict()
    • licenseHasModule

      protected boolean licenseHasModule(String module, boolean isValidLicense)
    • isLicenseStrict

      protected boolean isLicenseStrict(boolean isValidLicense)
    • getMenuSpacer

      protected org.apache.ecs.Element getMenuSpacer()
    • 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