Package org.fife.ui.rtextarea
Enum ConfigurableCaret.SelectionType
- java.lang.Object
-
- java.lang.Enum<ConfigurableCaret.SelectionType>
-
- org.fife.ui.rtextarea.ConfigurableCaret.SelectionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConfigurableCaret.SelectionType>
- Enclosing class:
- ConfigurableCaret
public static enum ConfigurableCaret.SelectionType extends java.lang.Enum<ConfigurableCaret.SelectionType>
Describes the current selection behavior. This is determined by the user's click count (single, double or triple).
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SelectionType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigurableCaret.SelectionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConfigurableCaret.SelectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAR
public static final ConfigurableCaret.SelectionType CHAR
-
WORD
public static final ConfigurableCaret.SelectionType WORD
-
LINE
public static final ConfigurableCaret.SelectionType LINE
-
-
Method Detail
-
values
public static ConfigurableCaret.SelectionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConfigurableCaret.SelectionType c : ConfigurableCaret.SelectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurableCaret.SelectionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-