Class ColumnResidualTime

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

@Component public class ColumnResidualTime extends Column
See Also:
  • Field Details

    • staticviewpath

      protected String staticviewpath
    • staticview

      protected StaticView staticview
    • configuration

      protected DBView configuration
    • columnValueFrom

      protected String columnValueFrom
    • columnValueIndexFrom

      protected int columnValueIndexFrom
    • columnValueTo

      protected String columnValueTo
    • columnValueIndexTo

      protected int columnValueIndexTo
    • columnColor

      protected String columnColor
    • columnColorIndex

      protected int columnColorIndex
    • columnTitle

      protected String columnTitle
    • columnTitleIndex

      protected int columnTitleIndex
  • Constructor Details

    • ColumnResidualTime

      public ColumnResidualTime()
  • Method Details

    • setCOLUMNVALUEFROM

      public void setCOLUMNVALUEFROM(String s)
      Parameters:
      s - the field in which read the range start value of the thresholds configuration
    • setCOLUMNVALUETO

      public void setCOLUMNVALUETO(String s)
      Parameters:
      s - the field in which read the range end value of the thresholds configuration
    • setCOLUMNCOLOR

      public void setCOLUMNCOLOR(String s)
      Parameters:
      s - the field in which read the color to apply if the range contains the rendered value
    • setCOLUMNTITLE

      public void setCOLUMNTITLE(String s)
      Parameters:
      s - the field in which define a tool-tip that explain the range meaning
    • setSTATICVIEW

      public void setSTATICVIEW(String path)
      Parameters:
      path - the StaticView path with the thresholds configuration
    • setupMetaData

      public void setupMetaData(DBView dbv)
      Description copied from class: Column
      Called to init all the field starting form the DBView
      Overrides:
      setupMetaData in class Column
      Parameters:
      dbv - The DBView with all the field used in the init
    • freeResources

      public void freeResources()
      Overrides:
      freeResources in class Column
    • getHtmlRow

      public org.apache.ecs.Element getHtmlRow(EntitySet es, int row, int pagerow, ArrayList al)
      Description copied from class: Column
      Returns the html element that defines the row
      Overrides:
      getHtmlRow in class Column
      Parameters:
      es - The EntitySet to which the element belongs
      row - The number of the row
      pagerow - The number ofd the page
      al - The list of values of the row
      Returns:
      The html element that defines the row
    • format

      protected String format(Long duration)
      Return a String that represents the given duration expressed in Day, Hours, Minutes
      Parameters:
      duration - the duration to format
      Returns:
      a String that represents the given duration expressed in Day, Hours, Minutes
    • getMatchingRangeIndex

      protected int getMatchingRangeIndex(Long minutes)
      Parameters:
      minutes - the residual time to represents
      Returns:
      the index of the range configuration that match the given minutes
    • getColor

      protected String getColor(int pos)
      Parameters:
      pos - the configuration index
      Returns:
      the configured color
      See Also:
    • getTitle

      protected String getTitle(int pos)
      Parameters:
      pos - configuration index
      Returns:
      the configured range tool-tip
      See Also: