Package docking.widgets.table.threaded
Class DefaultAddRemoveStrategy<T>
- java.lang.Object
-
- docking.widgets.table.threaded.DefaultAddRemoveStrategy<T>
-
- Type Parameters:
T
- the row type
- All Implemented Interfaces:
TableAddRemoveStrategy<T>
public class DefaultAddRemoveStrategy<T> extends java.lang.Object implements TableAddRemoveStrategy<T>
A strategy that uses the table's sort state to perform a binary search of items to be added and removed.This strategy is aware that some items may not be correctly removed, such as database items that have been deleted externally to the table. These items may require a brute force update to achieve removal.
-
-
Constructor Summary
Constructors Constructor Description DefaultAddRemoveStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(java.util.List<AddRemoveListItem<T>> addRemoveList, TableData<T> tableData, TaskMonitor monitor)
Adds to and removes from the table data those items in the given add/remove list
-
-
-
Method Detail
-
process
public void process(java.util.List<AddRemoveListItem<T>> addRemoveList, TableData<T> tableData, TaskMonitor monitor) throws CancelledException
Description copied from interface:TableAddRemoveStrategy
Adds to and removes from the table data those items in the given add/remove list- Specified by:
process
in interfaceTableAddRemoveStrategy<T>
- Parameters:
addRemoveList
- the items to add/removetableData
- the table's datamonitor
- the monitor- Throws:
CancelledException
- if the monitor is cancelled
-
-