All Implemented Interfaces:
Serializable, EntityContainer, overit.geocall.clipboard.XClip, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, DAViewManager, DBViewManager, DraggableDroppable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable
Direct Known Subclasses:
ActivityCalendarView, ResourceForecastCalendarView

@Component public class CalendarView extends ServerTableView
See Also:
  • Field Details

  • Constructor Details

    • CalendarView

      public CalendarView()
  • Method Details

    • setFULLHEIGHT

      public void setFULLHEIGHT(String s)
      Description copied from class: Component
      Sets the vertical size of the component to fullsize. So, when it is sets to true, the height of the component will occupy all the space possible
      Overrides:
      setFULLHEIGHT in class Component
      Parameters:
      s - String containing the boolean value to enable fullsize mode or not.
    • setTimeRanges

      public void setTimeRanges(List<CalendarViewTimeRange> timeRanges)
    • getTimeRanges

      public List<CalendarViewTimeRange> getTimeRanges()
    • getConfiguration

      public CalendarViewConfiguration getConfiguration()
    • getSelectedCells

      public List<CalendarViewColumnCell<?>> getSelectedCells()
    • 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 TableView
      Parameters:
      o - Object received from the caller
    • buildDisplayScript

      public void buildDisplayScript(StringBuilder sb)
      Description copied from class: TableView
      Every component can add a script to the StringBuilder, script executed when the component is displayed The method add the script that manage the position of the scrollbar of the table
      Overrides:
      buildDisplayScript in class TableView
      Parameters:
      sb - The StringBuilder on which we want to add the script
    • buildScrollTopScript

      protected void buildScrollTopScript(StringBuilder sb)
      Description copied from class: TableView
      Don't use this method, use TableView.buildScrollScript(StringBuilder) instead.
      Overrides:
      buildScrollTopScript in class TableView
      Parameters:
      sb - Don't use this method, use TableView.buildScrollScript(StringBuilder) instead.
    • getTimeRangesCalculator

      protected CalendarViewTimeRangeCalculator getTimeRangesCalculator()
    • buildTimeRanges

      protected List<CalendarViewTimeRange> buildTimeRanges()
    • updateConfiguration

      public void updateConfiguration(CalendarViewConfiguration configuration)
      Set the configuration to the table and build the list of CalendarViewTimeRange to display
    • manageColumns

      protected void manageColumns()
      Hide or show the columns of type CalendarViewColumn of the table based on CalendarViewTimeRange list
    • getCellLabel

      protected String getCellLabel(CalendarViewTimeRange calendarViewTimeRange)
      Build the header label of the column
    • getLabelDay

      protected String getLabelDay(Date date)
    • getLabelWeek

      protected String getLabelWeek(Date date)
    • onSelectCell

      public boolean onSelectCell(UIMessage uim)
      Selection cell event. Collect the selected cells on selectedCell attribute and set/remove the selected attributes on each CalendarViewColumnCell item
    • onEmptyCellsSelection

      public boolean onEmptyCellsSelection(UIMessage uim)
      Empty the set of selected cells