@Retention(value=RUNTIME) public static @interface PropertyDesc.Enum
@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()
Modifier and Type | Required Element and Description |
---|---|
String |
code
Java code of the enumeration.
|
String |
name
Name of the enumeration.
|
Modifier and Type | Optional Element and Description |
---|---|
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.
|
public abstract String name
public abstract String code
public abstract String stringValue
public abstract Class<?> classValue
public abstract long longValue
Copyright (C) 2004-2019 FormDev Software GmbH. All rights reserved.