Package it.tidalwave.cec
Enum CecUserControlEvent.UserControlCode
- java.lang.Object
-
- java.lang.Enum<CecUserControlEvent.UserControlCode>
-
- it.tidalwave.cec.CecUserControlEvent.UserControlCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CecUserControlEvent.UserControlCode>
- Enclosing class:
- CecUserControlEvent
public static enum CecUserControlEvent.UserControlCode extends java.lang.Enum<CecUserControlEvent.UserControlCode>
Defines the key codes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CecUserControlEvent.UserControlCode
forCode(int code)
static CecUserControlEvent.UserControlCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CecUserControlEvent.UserControlCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELECT
public static final CecUserControlEvent.UserControlCode SELECT
-
UP
public static final CecUserControlEvent.UserControlCode UP
-
DOWN
public static final CecUserControlEvent.UserControlCode DOWN
-
LEFT
public static final CecUserControlEvent.UserControlCode LEFT
-
RIGHT
public static final CecUserControlEvent.UserControlCode RIGHT
-
EXIT
public static final CecUserControlEvent.UserControlCode EXIT
-
PLAY
public static final CecUserControlEvent.UserControlCode PLAY
-
STOP
public static final CecUserControlEvent.UserControlCode STOP
-
PAUSE
public static final CecUserControlEvent.UserControlCode PAUSE
-
FAST_FORWARD
public static final CecUserControlEvent.UserControlCode FAST_FORWARD
-
REWIND
public static final CecUserControlEvent.UserControlCode REWIND
-
-
Method Detail
-
values
public static CecUserControlEvent.UserControlCode[] 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 (CecUserControlEvent.UserControlCode c : CecUserControlEvent.UserControlCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CecUserControlEvent.UserControlCode 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
-
forCode
@Nonnull public static CecUserControlEvent.UserControlCode forCode(int code) throws NotFoundException
- Throws:
NotFoundException
-
-