Class TLspDefaultSelectionCandidateHandler
java.lang.Object
com.luciad.view.lightspeed.controller.selection.TLspDefaultSelectionCandidateHandler
- All Implemented Interfaces:
ILspSelectionCandidateHandler
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:
- For
TLspSelectMode.REPLACEandTLspSelectMode.ADD: all objects in the list of selection candidates are selected. - For
TLspSelectMode.REMOVE: all objects in the list of selection candidates are deselected. - For
TLspSelectMode.INVERT: all previously selected objects in the list of selection candidates are deselected, and all previously unselected objects are selected.
- Since:
- 2012.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleSelectionCandidates(ALspSelectInput aInput, TLspSelectMode aMode, ILspView aView, List<TLspDomainObjectContext> aSelectionCandidates) Handles which objects change their selection from a list of selection candidates.
-
Constructor Details
-
TLspDefaultSelectionCandidateHandler
public TLspDefaultSelectionCandidateHandler()Default constructor
-
-
Method Details
-
handleSelectionCandidates
public void handleSelectionCandidates(ALspSelectInput aInput, TLspSelectMode aMode, ILspView aView, List<TLspDomainObjectContext> aSelectionCandidates) Description copied from interface:ILspSelectionCandidateHandlerHandles which objects change their selection from a list of selection candidates. It is the responsibility of this method to:- Update the selection on the layer(s) of the view.
- Trigger the
ILcdLayer.fireCollectedSelectionChanges()method on the layers of which the selection was updated.
- Specified by:
handleSelectionCandidatesin interfaceILspSelectionCandidateHandler- Parameters:
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.
-