public class TLspDefaultSelectionCandidateHandler extends Object implements ILspSelectionCandidateHandler
ILspSelectionCandidateHandler
used by the TLspSelectControllerModel
to update the selection for TLspSelectChoice.DEFAULT
.
This implementation has the following selection update behavior:
TLspSelectMode.REPLACE
and TLspSelectMode.ADD
: all objects in the list of selection candidates are selected.TLspSelectMode.REMOVE
: all objects in the list of selection candidates are deselected.TLspSelectMode.INVERT
: all previously selected objects in the list of selection candidates are deselected, and all
previously unselected objects are selected.Constructor and Description |
---|
TLspDefaultSelectionCandidateHandler()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
handleSelectionCandidates(ALspSelectInput aInput,
TLspSelectMode aMode,
ILspView aView,
List<TLspDomainObjectContext> aSelectionCandidates)
Handles which objects change their selection from a list of selection candidates.
|
public TLspDefaultSelectionCandidateHandler()
public void handleSelectionCandidates(ALspSelectInput aInput, TLspSelectMode aMode, ILspView aView, List<TLspDomainObjectContext> aSelectionCandidates)
ILspSelectionCandidateHandler
ILcdLayer.fireCollectedSelectionChanges()
method on the layers of which the selection was updated.handleSelectionCandidates
in interface ILspSelectionCandidateHandler
aInput
- the selection input.aMode
- the mode, this controls how the selection is adapted for the remaining selection candidates.aView
- the view for which this selection candidate handler was invoked.
The view can be used to retrieve the layers and the currently selected objects.aSelectionCandidates
- the list of potential selection candidates whose selection will be handled.