Class TaskBoxFavoritesMenu

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

public class TaskBoxFavoritesMenu extends Control implements EventValidator, AjaxableComponent
This class defines the component inserted inside the TaskBar, which is used to group the menu items (TaskMessage) belonging to the favorites menu.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • changed

      public void changed(overit.geocall.ux.servlet.processor.Change change)
      Description copied from interface: AjaxableComponent
      Defines the morphing of the element that occurs when there is an Ajax interaction
      Specified by:
      changed in interface AjaxableComponent
      Parameters:
      change - The Change object that defines the specific morphing type for the element
    • getDefaultChange

      public overit.geocall.ux.servlet.processor.Change getDefaultChange()
      Description copied from interface: AjaxableComponent
      Defines the default Change object for the element
      Specified by:
      getDefaultChange in interface AjaxableComponent
      Returns:
      The default Change object that defines the default morphing type of the element
    • 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
    • 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
      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
    • getFavorites

      protected List<org.apache.ecs.Element> getFavorites(List<XMLTree> favoritesNodes, EntitySet es, String selected, boolean readOnly)
    • drawfavoritesBox

      protected org.apache.ecs.Element drawfavoritesBox(boolean open, String name, String id, String keylabel, ArrayList<org.apache.ecs.Element> elements)
    • getOriginalPathTooltip

      protected String getOriginalPathTooltip(XMLTree node)
    • 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
    • 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