public enum SearchMode extends java.lang.Enum<SearchMode>
SearchAction
)Enum Constant and Description |
---|
add
add to selection
|
in_selection
find in selection
|
remove
remove from selection
|
replace
replace selection
|
Modifier and Type | Field and Description |
---|---|
private char |
code |
Modifier and Type | Method and Description |
---|---|
static SearchMode |
fromCode(char code)
Returns the search mode matching the given character code.
|
char |
getCode()
Returns the unique character code of this mode.
|
static SearchMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SearchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchMode replace
public static final SearchMode add
public static final SearchMode remove
public static final SearchMode in_selection
private final char code
public static SearchMode[] values()
for (SearchMode c : SearchMode.values()) System.out.println(c);
public static SearchMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic char getCode()
public static SearchMode fromCode(char code)
code
- character code