Package jmri.jmrit.ctc.ctcserialdata
Enum CodeButtonHandlerData.TURNOUT_TYPE
- java.lang.Object
-
- java.lang.Enum<CodeButtonHandlerData.TURNOUT_TYPE>
-
- jmri.jmrit.ctc.ctcserialdata.CodeButtonHandlerData.TURNOUT_TYPE
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CodeButtonHandlerData.TURNOUT_TYPE>
- Enclosing class:
- CodeButtonHandlerData
public static enum CodeButtonHandlerData.TURNOUT_TYPE extends java.lang.Enum<CodeButtonHandlerData.TURNOUT_TYPE>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CROSSOVER
DOUBLE_CROSSOVER
TURNOUT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt()
static CodeButtonHandlerData.TURNOUT_TYPE
getTurnoutType(int radioGroupValue)
static CodeButtonHandlerData.TURNOUT_TYPE
getTurnoutType(javax.swing.ButtonGroup buttonGroup)
static CodeButtonHandlerData.TURNOUT_TYPE
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CodeButtonHandlerData.TURNOUT_TYPE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TURNOUT
public static final CodeButtonHandlerData.TURNOUT_TYPE TURNOUT
-
CROSSOVER
public static final CodeButtonHandlerData.TURNOUT_TYPE CROSSOVER
-
DOUBLE_CROSSOVER
public static final CodeButtonHandlerData.TURNOUT_TYPE DOUBLE_CROSSOVER
-
-
Method Detail
-
values
public static CodeButtonHandlerData.TURNOUT_TYPE[] 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 (CodeButtonHandlerData.TURNOUT_TYPE c : CodeButtonHandlerData.TURNOUT_TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CodeButtonHandlerData.TURNOUT_TYPE 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
-
getInt
public int getInt()
-
getTurnoutType
public static CodeButtonHandlerData.TURNOUT_TYPE getTurnoutType(int radioGroupValue)
-
getTurnoutType
public static CodeButtonHandlerData.TURNOUT_TYPE getTurnoutType(javax.swing.ButtonGroup buttonGroup)
-
-