Class SynchronizedPlanningMonitorTableView

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:
TableViewSchedulableActivities

@Component public class SynchronizedPlanningMonitorTableView extends ServerTableView
TableView extension to keep track of the selection order, that will be considered in the paste process. Add also the possibility to bind this table to another one, synchronizing the DBView and the selection between them.
Since:
9.2
See Also:
GCApi:
component
  • Field Details

    • PASTE_ORDER

      public static final String PASTE_ORDER
      Field in which keep track of the paste order defined by the user thought the selection order
      See Also:
    • clipboardTableView

      protected TableView clipboardTableView
  • Constructor Details

    • SynchronizedPlanningMonitorTableView

      public SynchronizedPlanningMonitorTableView()
  • Method Details

    • setClipboardTableView

      public void setClipboardTableView(TableView clipboardTableView)
      Allow to set a clipboard's TableView that should be synchronized with this one. Them will share the DBView and a selection on one table must be reflected on the other one
      Parameters:
      clipboardTableView - the TableView to synchronize with this one
    • onSelect

      public boolean onSelect(UIMessage uim)
      Description copied from class: TableView
      Makes a multiple selection of the rows of the table. It is the "classical" selection method. Using this method, on every click on a record, the corresponding row it's added to the Set of the selected rows. If the user is pressing the SHIFT button during the selection (during the click), it is performed a range multiple selection.
      Overrides:
      onSelect in class TableView
      Parameters:
      uim - The UIMessage that contains values, parameters and control values
      Returns:
      false
    • onSelectNone

      public boolean onSelectNone(Object o)
      Description copied from class: TableView
      Deselects all the rows of the table (usually used in association with a TableButton)
      Overrides:
      onSelectNone in class TableView
      Parameters:
      o - Not used
      Returns:
      false
    • onSelectAll

      public boolean onSelectAll(Object o)
      Description copied from class: TableView
      Selects all the rows of the table (usually used in association with a TableButton)
      Overrides:
      onSelectAll in class TableView
      Parameters:
      o - Not used
      Returns:
      false
    • onSelectTable

      public boolean onSelectTable(Object o)
      Overrides:
      onSelectTable in class TableView
    • clearPasteOrder

      public void clearPasteOrder()
      Clear the info about the paste order defined by the user with the selection order
    • onOrder

      public boolean onOrder(HashGetter hg)
      Description copied from class: TableView
      Orders the data of the table (see setMode())
      Overrides:
      onOrder in class TableView
      Parameters:
      hg - The map used to retrieve the parameter for the setMode() event
      Returns:
      true
    • setDBView

      public void setDBView(DBView dbv)
      Description copied from class: ServerTableView
      Sets the DBView, i.e. the logical view of a portion of a database table usually obtained as a result of a query, to the ServerTableView.
      Implements the DBViewManager interface.
      Specified by:
      setDBView in interface DBViewManager
      Overrides:
      setDBView in class ServerTableView
      Parameters:
      dbv - The DBView that we want to set to the table
    • changed

      public void changed()
      Description copied from class: Component
      Defines the morphing of the component that occurs when there is an Ajax interaction
      Overrides:
      changed in class Component
    • addOrderToSelectedRows

      protected void addOrderToSelectedRows(int currRow, boolean shift, Long maxOrder)
    • addOrderToCurrentRow

      protected void addOrderToCurrentRow(int currRow, Long maxOrder)
    • removeOrderFromSelectedRows

      protected void removeOrderFromSelectedRows(int currRow, boolean shift)
    • removeOrderFromCurrentRow

      protected void removeOrderFromCurrentRow(int currRow)
    • refreshNextOrdersAfterRemove

      protected void refreshNextOrdersAfterRemove(int currRow, Long deletedOrder)