Class TLspSelectChoice
Determines how to select from a list of (typically overlapping or very close) domain objects. Default available strategies are:
Creating custom strategies
Custom TLspSelectChoice
instances can be retrieved using the getInstance
method.
When using a custom one, make sure your TLspSelectControllerModel
set on the
TLspSelectController
can handle this choice.
On a default TLspSelectControllerModel
, this is done by registering a custom ILspSelectionCandidateHandler
through the TLspSelectControllerModel.setSelectionCandidateHandlerFor(TLspSelectChoice, ILspSelectionCandidateHandler)
method.
You also want to use a custom TLspSelectController
where the selectChoice
method is modified to return your custom choice when applicable.
- Since:
- 2012.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLspSelectChoice
Choice indicating to theTLspSelectController
andTLspSelectControllerModel
that the user can choose one or more selection candidates for which the selection is actually applied.static final TLspSelectChoice
The default choice for which theTLspSelectController
andTLspSelectControllerModel
will select the topmost object when trying to select overlapping objects. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLspSelectChoice
getInstance
(String aName) Returns an instance of aTLspSelectChoice
based on a name.getName()
Returns the name of this select choice.toString()
Returns the name of this select choice.
-
Field Details
-
DEFAULT
The default choice for which the
TLspSelectController
andTLspSelectControllerModel
will select the topmost object when trying to select overlapping objects.See
TLspSelectControllerModel.applySelection(ALspSelectInput, TLspSelectChoice, TLspSelectMode, List, ILspView)
for more details on how the default select controller handles this choice. -
CHOOSE
Choice indicating to the
TLspSelectController
andTLspSelectControllerModel
that the user can choose one or more selection candidates for which the selection is actually applied.See
TLspSelectControllerModel.applySelection(ALspSelectInput, TLspSelectChoice, TLspSelectMode, List, ILspView)
for more details on how the default select controller handles this choice.
-
-
Method Details
-
getInstance
Returns an instance of aTLspSelectChoice
based on a name.- Parameters:
aName
- the name of theTLspSelectChoice
.- Returns:
- the
TLspSelectChoice
.
-
getName
Returns the name of this select choice.- Returns:
- the name.
-
toString
Returns the name of this select choice.
-