java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.planning.ux.forecastcapacity.forecast.activity.detail.gantt.ForecastActivityDetailGantt
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<BOForecastActivity,BOForecastActivityDetailGantt>, GanttViewTooltipManager
Direct Known Subclasses:
CapacityPlanningActivityResultGantt, ForecastActivityDetailGanttComparator

The Class that defines the forecast activity detail gantt.
Since:
15.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • ForecastActivityDetailGantt

      public ForecastActivityDetailGantt()
  • 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
    • openContainer

      protected void openContainer()
    • initComponents

      protected void initComponents()
    • setGanttPeriod

      protected void setGanttPeriod()
    • preparePage

      protected void preparePage()
    • initForecastActivityDetailTableView

      protected void initForecastActivityDetailTableView()
    • 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.
    • addConfigurationMenuItem

      protected void addConfigurationMenuItem(overit.geocallapp.wfm.ui.Menu menu)
    • onTreeItemContextMenu

      public boolean onTreeItemContextMenu(UIMessage uim)
      UI event handler to show the gantt menu related to an activity.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • updateView

      protected boolean updateView()
    • loadGanttView

      protected void loadGanttView()
    • setVisibilityOfTableRows

      protected void setVisibilityOfTableRows(ForecastActivityDetailGanttDataBuilder dataBuilder)
    • onSelectionChanged

      public void onSelectionChanged(GanttView<BOForecastActivity,BOForecastActivityDetailGantt> view)
      On selection changed.
      Specified by:
      onSelectionChanged in interface GanttView.GanttViewSelectionListener<BOForecastActivity,BOForecastActivityDetailGantt>
      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
    • 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.
    • 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.
    • zoomStepWidth

      protected double zoomStepWidth()
    • onNewForecastActivity

      public boolean onNewForecastActivity(UIMessage uim)
      UI event handler to create a BOForecastActivity.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onImportActivities

      public boolean onImportActivities(UIMessage uim)
      This event open the panel to import the activities from the operation center
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onImportActivitiesFromWO

      public boolean onImportActivitiesFromWO(UIMessage uim)
      This event open the page to import the activities from the Work Order
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onImportOperationActivities

      public boolean onImportOperationActivities(UIMessage uim)
    • onSave

      public boolean onSave(UIMessage uim)
    • onSaveDetail

      public boolean onSaveDetail(UIMessage uim)
    • onSaveTimeframes

      public boolean onSaveTimeframes(UIMessage uim)
    • onSaveSkills

      public boolean onSaveSkills(UIMessage uim)
    • onAddTimeframe

      public boolean onAddTimeframe(UIMessage uim)
      This event open the panel to add a single timeframe
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddMultipleTimeframes

      public boolean onAddMultipleTimeframes(UIMessage uim)
      Open panel to add multiple timeframes
      Parameters:
      uim -
      Returns:
      true to break the responsibility chain, false otherwise.
    • onDeleteActivity

      public boolean onDeleteActivity(UIMessage uim)
      Event launched when a user clicks on delete activity action.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmDeleteActivity

      public boolean onConfirmDeleteActivity(UIMessage uim)
      This event delete the activity
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onEditActivitySkills

      public boolean onEditActivitySkills(UIMessage uim)
      This event open the panel to edit the skills
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • getForecastActivity

      protected BOForecastActivity getForecastActivity(UIMessage uim)
    • 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.
    • 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.
    • onDeleteTimeframe

      public boolean onDeleteTimeframe(UIMessage uim)
      UI event handler to delete a single timeframe
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onEditTimeframe

      public boolean onEditTimeframe(UIMessage uim)
      Event launched when a user clicks on edit activity action.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onDeleteTimeframes

      public boolean onDeleteTimeframes(UIMessage uim)
      UI event handler to delete all the selected timeframes
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmDeleteTimeframe

      public boolean onConfirmDeleteTimeframe(UIMessage uim)
      UI event handler to delete the selected timeframe
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmDeleteTimeframes

      public boolean onConfirmDeleteTimeframes(UIMessage uim)
      UI event handler to delete the selected timeframes
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onTreeItemClick

      public boolean onTreeItemClick(UIMessage uim)
      Click on the activity -> Select all the timeframes in the gantt chart and in the table
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSelectForecastActivityDetail

      public boolean onSelectForecastActivityDetail(UIMessage uim)
      Click on the timeframe -> Select the timeframe in the gantt chart and in the table
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onClearSelection

      public boolean onClearSelection(UIMessage uim)
    • getSortMap

    • onOverlapIconClick

      public boolean onOverlapIconClick(UIMessage uim)
      UI event handler to explode the timeframe when user clicks on the overlap icon
      Parameters:
      uim - the uim
      Returns:
      true, if successful
    • onRestore

      public void onRestore(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.pop(java.lang.Object) of the above Window. It calls the onRestore(o) method of all the Container's childrens
      Overrides:
      onRestore in class Container
      Parameters:
      o - Object received from the caller
    • onQuery

      public boolean onQuery(UIMessage uim)
      Main event for search action. It retrieves the search params from the uim and hide the search panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • search

      protected void search(Map<String,Object> formValues)
      Executes the search.
      Parameters:
      formValues - the form values
    • getFilterParams

      protected Map<String,Object> getFilterParams(Map<String,Object> formValues)
      Returns the map used for generate the filter object.
      Parameters:
      formValues - the search form values map
      Returns:
      a map used for generate the filter object
    • setActivityFilter

      protected void setActivityFilter(Map<String,Object> map)
      Sets the activity filter by collecting activity IDs from the gantt view root row's children and adding them to the filter map.
      Parameters:
      map - The filter map to which activity IDs will be added
    • onShowSearchPanel

      public boolean onShowSearchPanel(UIMessage uim)
      Event used to show the search panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onHideSearchPanel

      public boolean onHideSearchPanel(UIMessage uim)
      Event used to hide the search panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onFilterTab

      public boolean onFilterTab(UIMessage uim)
      UI event handler to show the filter tab.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • showFilterPanel

      protected void showFilterPanel()
      Manages the visibility of the filter panel.
    • dateRangesPresets

      protected DateRangePresets dateRangesPresets()
      Gets the date preset manager.
      Returns:
      the date range presets
    • onShowDatePresets

      public boolean onShowDatePresets(UIMessage uim)
      Shows the pop-up menu with the data preset values.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onClearDatePresets

      public boolean onClearDatePresets(UIMessage uim)
      Clears the value of the selected Date field.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onApplyPreset

      public boolean onApplyPreset(UIMessage uim)
      Applies the preset date range to a date filter.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onNextPage

      public boolean onNextPage(UIMessage uim)
      Handles the next page navigation event in the gantt view. Increments the current page number and reloads the views.
      Parameters:
      uim - the UI message containing event information
      Returns:
      true to indicate the event was handled
    • onPreviousPage

      public boolean onPreviousPage(UIMessage uim)
      Handles the previous page navigation event in the gantt view. Decrements the current page number and reloads the views.
      Parameters:
      uim - the UI message containing event information
      Returns:
      true to indicate the event was handled
    • loadViews

      protected void loadViews()
      Reloads all views by: 1. Getting updated filter parameters from the search form 2. Loading the gantt view with current data 3. Refreshing the gantt view display 4. Updating activity filters 5. Executing the search with current filters