Class TaskBarPage

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

@Component public class TaskBarPage extends Window
The class extends Window and implements the most external container that is used to create every page of the application
See Also:
GCApi:
component
  • Field Details

  • Constructor Details

    • TaskBarPage

      public TaskBarPage()
  • Method Details

    • setup

      protected void setup()
      Description copied from class: Component
      Setup the Component
      Overrides:
      setup in class Window
    • 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
    • setBROWSERTITLE

      public void setBROWSERTITLE(String s)
      Sets the title of the page, used to identify it in case of an exception during the page drawing
      Parameters:
      s - The title of the page
    • setSAVESCROLL

      public void setSAVESCROLL(String s)
      Sets the savescroll attribute to the body of the page
      Parameters:
      s - The string used as value for the savescroll attribute
    • setPageScroll

      public void setPageScroll(int x, int y)
      Sets the values of the horizontal and vertical scrolling of the page
      Parameters:
      x - The value of the horizontal scrolling
      y - The value of the vertical scrolling
    • setZoomComponent

      public void setZoomComponent(Component c)
      Sets the Component that must be added to the body of the page
      Parameters:
      c - The Component to add
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Returns the html code of the TaskBarPage
      Overrides:
      getHtml in class Container
      Parameters:
      es - The EntitySet to which the element belongs
      Returns:
      The html code of the TaskBarPage
    • setupWorkArea

      protected void setupWorkArea(org.apache.ecs.html.Div container, boolean withtaskbar)
    • setupFrameSetTitle

      protected void setupFrameSetTitle(org.apache.ecs.html.Head head, org.apache.ecs.html.Body body)
    • getWorkArea

      public org.apache.ecs.Element getWorkArea(EntitySet es)
      Returns the WorkArea
      Parameters:
      es - The EntitySet
      Returns:
      The table element that contains the WorkArea
    • getFloatBarsAndWorkArea

      public org.apache.ecs.Element getFloatBarsAndWorkArea(EntitySet es, TaskBar tb, int mode)
      Returns the floating TaskBar and the WorkArea
      Parameters:
      es - The EntitySet
      tb - The floating TaskBar
      mode - 0 unhooked bar, 1 hooked bar
      Returns:
      The element that contains the TaskBar and the WorkArea
    • getClientBarsAndWorkArea

      public org.apache.ecs.Element getClientBarsAndWorkArea(EntitySet es, TaskBar tb, String barMode)
      Returns the client TaskBar and the WorkArea
      Parameters:
      es - The EntitySet
      tb - The TaskBar
      barMode - off unhooked bar, on hooked bar
      Returns:
      The table element that contains the TaskBar and the WorkArea
    • addWorkAreaRow

      protected void addWorkAreaRow(org.apache.ecs.html.Div container, boolean withtaskbar, EntitySet es)
    • addWizardRow

      protected void addWizardRow(org.apache.ecs.html.Div container, EntitySet es)
    • addCurrentNodeInfo

      protected void addCurrentNodeInfo(org.apache.ecs.html.Div container)
    • addCurrentConfProfileInfo

      protected void addCurrentConfProfileInfo(org.apache.ecs.html.Div container)
    • onAlert

      public void onAlert(Object o)
      Shows an Alert
      Parameters:
      o - The Alert to show
    • onNavigate

      public boolean onNavigate(Object o)
      Makes a navigation i.e. reset the WindowManager stack and push a new page
      Parameters:
      o - The HashGetter that contains the param with the path of the desired page to be opened
      Returns:
      true if the navigation is correctly carried out, false otherwise
    • onDevelopMode

      public boolean onDevelopMode(Object o)
      Activate the develop mode, that republish all the scripts and css at every reload of the page
      Parameters:
      o - Not used
      Returns:
      true
    • onSerializationTest

      public boolean onSerializationTest(Object o)
      calls the serialization tests of thw Window,to check if the current page is serializable or not. Replaces the WebSession with the unserialized oenas, and shows an alert.
      Parameters:
      o - Not used
      Returns:
      true
    • onInvertDirection

      public boolean onInvertDirection(Object o)
      BETA VERSION Manages the event of inverting the direction of right-to-left
      Parameters:
      o - Not used
      Returns:
      true
    • getBody

      protected org.apache.ecs.html.Body getBody(EntitySet es)
    • onMenu

      public boolean onMenu(UIMessage uim)
      Performs the operation associated to the click on a voice of the menu of the TaskBar. If the parameter passed is null, the operation is a navigation on the index.xml page; otherwise is a navigation on the desired page, opened in a new tab with a new view if the user was contemporarly pressing the ctrl key
      Parameters:
      uim - The UIMessage that contains values, parameters and control values
      Returns:
      true if the operation is correctly carried out, false otherwise
    • getReachableChild

      protected XMLTree getReachableChild(XMLTree tree, String path)
      Returns the child tree at the desired path
      Parameters:
      tree - The XMLTree on which we want to reach the child identified by the path
      path - The string that defines the path with which visit the tree to reach the child
      Returns:
      The child tree at the desired path or null if the child tree does not exists or is it not accessible (one of the menu items is read-only or includes a function that the user currently logged in to the application does not have)
    • tooManyViews

      protected void tooManyViews()
    • onPush

      public boolean onPush(Object o)
      Makes a push of a page into the WindowManager stack of pages
      Parameters:
      o - The HashGetter that contains the param with the path of the desired page to be opened
      Returns:
      true if the push is correctly carried out, false otherwise
    • onClose

      public boolean onClose(Object o)
      Makes a pop (close) of a page from the WindowManager stack of pages
      Parameters:
      o - Not used
      Returns:
      true
    • onLogoutChoice

      public boolean onLogoutChoice(Object o)
      Manages the closing of a single view
      Parameters:
      o - Not used
      Returns:
      true
    • onLogout

      public boolean onLogout(UIMessage uim)
    • onCloseViewChoice

      public boolean onCloseViewChoice(Object o)
    • onCloseCurrentView

      public boolean onCloseCurrentView(Object o)
    • onExitAndLogoutChoice

      public boolean onExitAndLogoutChoice(Object o)
    • fullLogout

      protected boolean fullLogout(WindowManager wm)
      Manages the closing of all views
      Parameters:
      wm - Thw Window Manager from which retrieve the WebSession
      Returns:
      true
    • clearCurrentWindow

      protected boolean clearCurrentWindow(WindowManager wm)
      Manages the closing of a single view
      Parameters:
      wm - Thw Window Manager from which retrieve the WebSession
      Returns:
      true
    • onInfo

      public boolean onInfo(UIMessage uim)
      Shows an Alert with some informations about the user currently logged in the application such the image, gender, email, last connection date, last connection duration, etc.
      Parameters:
      uim - Not used
      Returns:
      true
    • onShowProfile

      public boolean onShowProfile(UIMessage uim)
    • getPictureInfo

      protected org.apache.ecs.Element getPictureInfo()
    • getConnectionInfo

      protected org.apache.ecs.Element getConnectionInfo()
    • getContactsInfo

      protected org.apache.ecs.Element getContactsInfo()
    • getLastConnectionsInfo

      protected org.apache.ecs.Element getLastConnectionsInfo()
    • addStackRow

      protected void addStackRow(org.apache.ecs.html.Div container)
    • fillLeftStackSection

      protected void fillLeftStackSection(org.apache.ecs.html.Div leftSection)
    • fillRightStackSection

      protected void fillRightStackSection(org.apache.ecs.html.Div rightSection)
    • addViewManagerIcon

      protected void addViewManagerIcon(org.apache.ecs.html.Div container)
    • addViewEditableIconsFeature

      protected void addViewEditableIconsFeature(org.apache.ecs.html.Div container)
    • onEnterConfigurableMode

      public boolean onEnterConfigurableMode(UIMessage uim)
    • onExitConfigurableMode

      public boolean onExitConfigurableMode(UIMessage uim)
    • addUserIcon

      protected void addUserIcon(org.apache.ecs.html.Div container)
    • onUserContextMenu

      public boolean onUserContextMenu(UIMessage uim)
    • getStackBarExtension

      protected org.apache.ecs.Element getStackBarExtension()
      Method that can be used to extends the icons and functionalities of the right-side of the stack bar.
      Returns:
      null
    • onShowMessagesPanel

      public boolean onShowMessagesPanel(UIMessage uim)
    • getWizard

      protected org.apache.ecs.Element getWizard(Wizard w)
    • wizardLink

      protected org.apache.ecs.html.A wizardLink(int i, String msg)
    • republishThemeForDebugMode

      protected void republishThemeForDebugMode(String theme)
    • resolvePathFromThemeName

      protected String resolvePathFromThemeName(String theme)
    • onStep

      public boolean onStep(HashGetter hg)
      makes a step on the wizard
      Parameters:
      hg - The HashGetter that contains the parameter with the action identification
      Returns:
      true
    • onRestartWizard

      public boolean onRestartWizard(Object o)
      Restarts the wizard
      Parameters:
      o - Not used
      Returns:
      true
    • onCloseWizard

      public boolean onCloseWizard(Object o)
      Closes the wizard
      Parameters:
      o - Not used
      Returns:
      true
    • onEndContact

      public boolean onEndContact(Object o)
      Ends the wizard procedure
      Parameters:
      o - Not used
      Returns:
      true
    • onMenuMode

      public boolean onMenuMode(Object o)
      Switchs between the hooked and unhooked state of the TaskBar
      Parameters:
      o - Not used
      Returns:
      true
    • main

      public static void main(String[] ss)
    • onDragDrop

      public boolean onDragDrop(HashGetter hg)
      Makes a drag and drop action
      Parameters:
      hg - The HashGetter that contains the parameters used to perform the action
      Returns:
      true
    • buildSetupScript

      public void buildSetupScript(StringBuilder sb)
      Every component can add a script to the StringBuilder, script executed when the component is created The method add the script that manage the custom alerts's labels translation.
      Overrides:
      buildSetupScript in class Component
      Parameters:
      sb - The StringBuilder on which we want to add the script
    • onPipeRequest

      public boolean onPipeRequest(UIMessage uim)
      Manages the pipe requests dispatching them to the target PipeRequestHandler.
      Parameters:
      uim - UIMessage about the current request.
      Returns:
      if true, the parent container is involved to manage this request; if false, no parent container is involved.
    • getInvalidLicenseWatermark

      protected org.apache.ecs.Element getInvalidLicenseWatermark()
    • logInvalidLicenseUse

      protected void logInvalidLicenseUse(Identity id, String module)
    • onShowConfigurationPanel

      public boolean onShowConfigurationPanel(UIMessage uim)
    • lookForMessages

      protected int lookForMessages()