Class DataCollectionTemplateGantt

java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.core.ux.datacollection.template.gantt.DataCollectionTemplateGantt
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, GanttView.GanttViewSelectionListener<BODataCollectionTemplateStructure,BODataCollectionTemplateStructureRelease>, GanttViewTooltipManager

The Class that defines the data collection template gantt.
Since:
12.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • DataCollectionTemplateGantt

      public DataCollectionTemplateGantt()
  • Method Details

    • onOpen

      public void onOpen(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that contains the Container. It calls the onOpen(o) method of all the Container's childrens.
      If a page is opened through the process of a route, it is possible that the route was called with params to pass to the page.
      The route params could be passed specifying them like query string's param on the url, using commas or the '=' character, to separate the keys and the values. Valid syntaxs are: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with the params passed as parameters.
      For example it's possible to retrieve and use the params in this way: HashGetter hg = getWM().getRouteParams();
      String val1 = hg.getString("key1",null);
      String val2 = hg.getString("key2",null);
      Overrides:
      onOpen in class Container
      Parameters:
      o - Object received from the caller
    • onSelectionChanged

      On selection changed.
      Specified by:
      onSelectionChanged in interface GanttView.GanttViewSelectionListener<BODataCollectionTemplateStructure,BODataCollectionTemplateStructureRelease>
      Parameters:
      view - the view
    • getTooltip

      public String getTooltip(String elementId)
      Returns the tooltip.
      Specified by:
      getTooltip in interface GanttViewTooltipManager
      Parameters:
      elementId - the element id
      Returns:
      the tooltip
    • preparePage

      protected void preparePage()
    • initComponents

      protected void initComponents()
    • initTemplateStructureTableView

      protected void initTemplateStructureTableView()
    • loadGanttView

      protected void loadGanttView()
    • onGanttMenu

      public boolean onGanttMenu(UIMessage uim)
      UI event handler to show the gantt menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onShowConfigurationPanel

      public boolean onShowConfigurationPanel(UIMessage uim)
      UI event handler to show the configuration panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onGanttViewChange

      public boolean onGanttViewChange(Void v)
      UI event handler to view the gantt change.
      Parameters:
      v - the Void
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowMenu

      public boolean onRowMenu(UIMessage uim)
      UI event handler to show the row menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onZoomIn

      public boolean onZoomIn(UIMessage uim)
      UI event handler to zoom in.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onZoomOut

      public boolean onZoomOut(UIMessage uim)
      UI event handler to zoom out.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onViewStructure

      public boolean onViewStructure(UIMessage uim)
      UI event handler to view a structure.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • loadDataCollectionTemplate

      protected DataCollectionTemplate loadDataCollectionTemplate(Long templateStructure) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • showDays

      public void showDays(UIMessage uim)
      Show the days.
      Parameters:
      uim - the UIMessage
    • onGridColsVisibility

      public boolean onGridColsVisibility(UIMessage uim)
      UI event handler to edit the grid cols visibility.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onGridRowsVisibility

      public boolean onGridRowsVisibility(UIMessage uim)
      UI event handler to edit the grid rows visibility.
      Parameters:
      uim - the uim
      Returns:
      true, if successful
    • updateView

      protected void updateView()
    • zoomStepWidth

      protected double zoomStepWidth()
    • onShowLegend

      public boolean onShowLegend(UIMessage uim)
      UI event handler to show the legend.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowBlockClicked

      public boolean onRowBlockClicked(UIMessage uim)
      UI event handler for when the row block is clicked.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSelectTemplateStructureRelease

      public boolean onSelectTemplateStructureRelease(UIMessage uim)
      UI event handler to select a template structure release.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowBlockContextMenu

      public boolean onRowBlockContextMenu(UIMessage uim)
      UI event handler to manage the right click on a block and it shows the context menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • getStructureIdFromUIMessage

      protected Long getStructureIdFromUIMessage(UIMessage uim)
    • onEditRelease

      public boolean onEditRelease(UIMessage uim)
      UI event handler to open the edit page of the selected template.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSaveDataCollectionTemplateStructureRelease

      public boolean onSaveDataCollectionTemplateStructureRelease(UIMessage uim)
      UI event handler to save the data collection template structure release and refresh the data in the gantt page.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.