fr.emn.reactiveinput
Class Enum
java.lang.Object
fr.emn.reactiveinput.Enum
- Direct Known Subclasses:
- DisplaysEnum, DSwCommand.CmdEnum, DSwPick.PickEnum, ImageEnum, OutEnum, SlotType
- public abstract class Enum
- extends java.lang.Object
A simple "enumerated list" type, to use with device properties.
Enumerated lists are usually implemented in java as integer
constants. This class is displayed in the property dialog box as
a choice list.
Field Summary |
protected int |
value
|
Constructor Summary |
Enum(int value)
|
Method Summary |
static Enum |
copy(Enum source,
int value)
An utility method that returns a creates an enum of the same class
but with another value |
static Enum |
create(java.lang.Class sourceClass,
int value)
|
abstract java.lang.String[] |
getChoices()
|
int |
getValue()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected int value
Enum
public Enum(int value)
copy
public static Enum copy(Enum source,
int value)
- An utility method that returns a creates an enum of the same class
but with another value
create
public static Enum create(java.lang.Class sourceClass,
int value)
getChoices
public abstract java.lang.String[] getChoices()
getValue
public int getValue()