Class GanttView.GanttViewSelection<R,B>
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.gantt.view.GanttView.GanttViewSelection<R,B>
- Direct Known Subclasses:
DataCollectionTemplateGanttView.DataCollectionGanttViewSelection,ForecastActivityDetailGanttView.ForecastActivityDetailGanttViewSelection,MultistageGroupGanttView.MultistageGanttViewSelection
Support object to manage the
blocks selection
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the selection of the whole Gantt rowsvoidClear the selection of the given rowprotected voidbooleanisBlockSelected(String rowId, String blockId) protected voidvoidrowSingleSelect(String rowId, String blockId) Clear the selection of the given row, and select only the required block.voidselectBlock(String rowId, String blockId) Select the required block in the required row, without alter the selection of the other blocksprotected voidselectBlock(String rowId, String blockId, boolean silent) protected voidselectFromMaxToNew(GanttRow<R, B> row, GanttBlock<B> block, Date maxSelection) protected voidselectFromMinToNew(GanttRow<R, B> row, GanttBlock<B> block, Date minSelection) protected voidselectFromNewToMin(GanttRow<R, B> row, GanttBlock<B> block, Date minSelection) voidselectRowBlocks(String rowPath, boolean deep) Select the required block in the required row, without alter the selection of the other blocksprotected voidselectRowBlocks(String rowPath, boolean silent, boolean deep) voidExpand the selection until the required block is reached with the following assumptions: x is selected - is not selectedvoidtoggleBlockSelection(String rowId, String blockId) Switch the selection of the required block from true to false, and viceversa.voidunselectBlock(String rowId, String blockId) Unselect the required block in the required row, without alter the selection of the other blocksvoidunselectRowBlocks(String rowPath) Unselect the required row's blocks,
-
Field Details
-
_selection
-
-
Constructor Details
-
GanttViewSelection
-
-
Method Details
-
notifyListeners
protected void notifyListeners() -
clear
public void clear()Clear the selection of the whole Gantt rows -
clear
Clear the selection of the given row- Parameters:
rowId- the row to clear
-
clear
-
selectRowBlocks
Select the required block in the required row, without alter the selection of the other blocks- Parameters:
rowPath- the path of the row in which look for the block
-
selectRowBlocks
-
selectBlock
Select the required block in the required row, without alter the selection of the other blocks- Parameters:
rowId- the id of the row in which look for the blockblockId- the block id to select
-
selectBlock
-
unselectBlock
Unselect the required block in the required row, without alter the selection of the other blocks- Parameters:
rowId- the id of the row in which look for the blockblockId- the block id to unselect
-
unselectRowBlocks
Unselect the required row's blocks,- Parameters:
rowPath- the id of the row in which look for the block
-
isBlockSelected
- Parameters:
rowId- the id of the row in which look for the blockblockId- the block id to esaminate- Returns:
- true if is the block is selected, false otherwise
-
toggleBlockSelection
Switch the selection of the required block from true to false, and viceversa.- Parameters:
rowId- the id of the row in which look for the blockblockId- the block id to toggle
-
selectTo
Expand the selection until the required block is reached with the following assumptions: x is selected - is not selectedassume that the row 1 have this situation 01234567 -------- selectTo(1, 2) will modify the selection to 01234567 --x----- and from this situation, selectTo(1, 6) will modify the selection to 01234567 --xxxxx- and from this situation, selectTo(1, 0) will modify the selection to 01234567 xxxxxxx- and from this situation, selectTo(1, 4) will modify the selection to 01234567 xxxxx--- (close the current selection with the 4th element)- Parameters:
rowId- the id of the row in which look for the blockblockId- the block id to reach with the selection
-
selectFromMinToNew
-
selectFromMaxToNew
-
selectFromNewToMin
-
rowSingleSelect
Clear the selection of the given row, and select only the required block.- Parameters:
rowId- the id of the row in which look for the blockblockId- the block id to reach with the selection
-
getSelectedBlocks
- Returns:
- a
Collectionwith the id of the selected blocks
-