public final class TLspSelectMode extends Object
TLspSelectControllerModel
can deal with the following modes:
Custom modes can be retrieved using the getInstance
method.
When using a custom one, make sure your TLspSelectControllerModel
set on the
TLspSelectController
can handle this mode.
On a default TLspSelectControllerModel
, this is done by either overriding the applySelection
method or replacing the registered ILspSelectionCandidateHandler
instances.
Modifier and Type | Field and Description |
---|---|
static TLspSelectMode |
ADD
Select mode defining that the candidates for the selection should be added to the
current selection.
|
static TLspSelectMode |
INVERT
Select mode defining that the current selection state of the candidates for the
selection should be toggled: those that were selected are deselected, those
that were deselected are selected.
|
static TLspSelectMode |
NO_CHANGE
Select mode defining that no changes must be made to the selection.
|
static TLspSelectMode |
REMOVE
Select mode defining that the candidates for the selection should be removed from
the current selection.
|
static TLspSelectMode |
REPLACE
Select mode defining that the current selection is replaced by a new selection.
|
Modifier and Type | Method and Description |
---|---|
static TLspSelectMode |
getInstance(String aName)
Returns an instance of a
TLspSelectMode based on a name. |
String |
getName()
Returns the name of this select mode.
|
String |
toString()
Returns the name of this select mode.
|
public static final TLspSelectMode REPLACE
public static final TLspSelectMode ADD
public static final TLspSelectMode REMOVE
public static final TLspSelectMode INVERT
public static final TLspSelectMode NO_CHANGE
public static TLspSelectMode getInstance(String aName)
TLspSelectMode
based on a name.aName
- the name of the TLspSelectMode
.TLspSelectMode
.public String getName()