|
JFormDesigner 5.0.4 Annotations | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) public static @interface PropertyDesc.Enum
This annotation can be used to specify a list of valid property values. For example:
@PropertyDesc( enumValues={ @Enum(name="Horizontal", intValue=SwingConstants.HORIZONTAL, code="SwingConstants.HORIZONTAL"), @Enum(name="Vertical", intValue=SwingConstants.VERTICAL, code="SwingConstants.VERTICAL"), }, imports={SwingConstants.class} ) public int getOrientation() { return orientation; }Each enumeration value consists of a
name
, a value (one of
stringValue()
, classValue()
, booleanValue()
, charValue()
,
byteValue()
, shortValue()
, intValue()
, longValue()
,
floatValue()
or doubleValue()
)
and Java source code()
.
Only one of the *value
attributes must be specified.
Note: JFormDesigner supports Java 5 enumeration types, which do not need this kind of configuration.
PropertyDesc.enumValues()
Required Element Summary | |
---|---|
String |
code
Java code of the enumeration. |
String |
name
Name of the enumeration. |
Optional Element Summary | |
---|---|
boolean |
booleanValue
Boolean value of the enumeration. |
byte |
byteValue
Byte value of the enumeration. |
char |
charValue
Character value of the enumeration. |
Class<?> |
classValue
Class value of the enumeration. |
double |
doubleValue
Double value of the enumeration. |
float |
floatValue
Float value of the enumeration. |
int |
intValue
Integer value of the enumeration. |
long |
longValue
Long value of the enumeration. |
short |
shortValue
Short value of the enumeration. |
String |
stringValue
String value of the enumeration. |
Element Detail |
---|
public abstract String name
public abstract String code
public abstract String stringValue
public abstract Class<?> classValue
public abstract boolean booleanValue
public abstract char charValue
public abstract byte byteValue
public abstract short shortValue
public abstract int intValue
public abstract long longValue
public abstract float floatValue
public abstract double doubleValue
|
JFormDesigner 5.0.4 Annotations | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |