Type Parameters:
R - the raw data type for the Gantt row
B - the raw data type for the Gantt block
All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable, ViewportPart.ViewportPartResizeListener
Direct Known Subclasses:
DataCollectionTemplateGanttView, ForecastActivityDetailGanttView, MultistageGroupGanttView, ProjectGanttView, TestGanttView

public class GanttView<R,B> extends Container implements AjaxableComponent, ViewportPart.ViewportPartResizeListener
Base GanttView to extend defining the actual types for the Gantt row and block
See Also:
  • Field Details

  • Constructor Details

    • GanttView

      public GanttView()
  • Method Details

    • addSelectionListener

      public void addSelectionListener(GanttView.GanttViewSelectionListener<R,B> l)
    • setTooltipManager

      public void setTooltipManager(GanttViewTooltipManager tooltipManager)
    • setBLOCKCLICKEVENT

      public void setBLOCKCLICKEVENT(String s)
    • setBLOCKCONTEXTMENUEVENT

      public void setBLOCKCONTEXTMENUEVENT(String s)
    • setTREEITEMCLICKEVENT

      public void setTREEITEMCLICKEVENT(String s)
    • setTREEITEMCONTEXTMENUEVENT

      public void setTREEITEMCONTEXTMENUEVENT(String s)
    • setHEIGHT

      public void setHEIGHT(String s)
    • setShowRowDescription

      public void setShowRowDescription(boolean showRowDescription)
    • isShowRowDescription

      public boolean isShowRowDescription()
    • setShowBlocksCounter

      public void setShowBlocksCounter(boolean show)
    • 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
    • buildTimeLineRenderer

      protected GanttTimeLineRenderer<R,B> buildTimeLineRenderer()
    • buildTreeRenderer

      protected GanttTreeRenderer<R,B> buildTreeRenderer()
    • getSelection

      public GanttView.GanttViewSelection getSelection()
    • getExpansion

      public GanttViewExpansion getExpansion()
    • initCaptionElements

      protected void initCaptionElements()
    • buildViewConfiguration

      protected void buildViewConfiguration()
    • setViewConfig

      public void setViewConfig(GanttViewConfiguration config)
    • getViewConfiguration

      public GanttViewConfiguration getViewConfiguration()
    • setRootRow

      public void setRootRow(GanttRow<R,B> root)
    • getRootRow

      public GanttRow<R,B> getRootRow()
    • 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
    • getJSVariableName

      public String getJSVariableName()
    • onWidthChangedJSCallBack

      public String onWidthChangedJSCallBack()
      Specified by:
      onWidthChangedJSCallBack in interface ViewportPart.ViewportPartResizeListener
    • onHeightChangedJSCallBack

      public String onHeightChangedJSCallBack()
      Specified by:
      onHeightChangedJSCallBack in interface ViewportPart.ViewportPartResizeListener
    • scrollBlockIntoView

      public void scrollBlockIntoView(GanttRow<R,B> row, GanttBlock<B> block)
    • scrollLeft

      public void scrollLeft(double px)
    • getFrameHtml

      public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change c, 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:
      c - 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
    • getHtmlId

      public String getHtmlId()
    • buildViewStyle

      protected String buildViewStyle()
    • renderRow

      protected void renderRow(GanttRow<R,B> row, EntitySet es)
    • 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: Container
      Returns the html code of the Container
      Overrides:
      getHtml in class Container
      Parameters:
      es - The EntitySet to which the element belong
      Returns:
      The html code of the Container
    • addDebugResources

      protected void addDebugResources()
    • updateConfig

      protected void updateConfig()
    • defineVisibleRange

      protected Date[] defineVisibleRange()
    • getCaption

      protected org.apache.ecs.Element getCaption(EntitySet es)
    • onTableOrdersMenu

      public boolean onTableOrdersMenu(HashGetter hg)
    • onExpandGanttRow

      public boolean onExpandGanttRow(UIMessage uim)
    • onCollapseRow

      public boolean onCollapseRow(UIMessage uim)
    • getIdFromPath

      public String getIdFromPath(String rowPath)
    • setShowGridRows

      public void setShowGridRows(boolean show)
    • setShowGridCols

      public void setShowGridCols(boolean show)
    • isShowGridRows

      public boolean isShowGridRows()
    • isShowGridCols

      public boolean isShowGridCols()
    • ajaxQuery

      public void ajaxQuery(HttpServletRequest request, HttpServletResponse response)
      Description copied from class: Component
      Method that must be extended to implements the Ajax interaction request / response logic for the Component
      Overrides:
      ajaxQuery in class Component
      Parameters:
      request - HttpServletRequest
      response - HttpServletResponse
    • fetchTooltip

      protected String fetchTooltip(String param)
    • notifyListeners

      protected void notifyListeners()