|
JFormDesigner 5.0.4 Annotations | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) public static @interface BeanInfo.Attribute
This annotation can be used to specify additional attributes for
BeanDescriptor
and PropertyDescriptor
.
Each attributes consists of a name
and a value (one of
stringValue()
, classValue()
, booleanValue()
, charValue()
,
byteValue()
, shortValue()
, intValue()
, longValue()
,
floatValue()
, doubleValue()
, stringArrayValue()
or classArrayValue()
).
Only one of the *value
attributes must be specified.
Example for specifying this annotation in a PropertyDesc
annotation:
@PropertyDesc(attributes={ @Attribute(name="readOnly", booleanValue=true), @Attribute(name="notRestoreDefault", booleanValue=true), }) public int getSomething() { return something; }See http://www.formdev.com/jformdesigner/doc/java-beans/#beaninfo for a list of attributes supported by JFormDesigner.
BeanInfo.attributes()
,
PropertyDesc.attributes()
Required Element Summary | |
---|---|
String |
name
The name of the attribute. |
Optional Element Summary | |
---|---|
boolean |
booleanValue
Boolean value of the attribute. |
byte |
byteValue
Byte value of the attribute. |
char |
charValue
Character value of the attribute. |
Class<?>[] |
classArrayValue
Class array value of the attribute. |
Class<?> |
classValue
Class value of the attribute. |
double |
doubleValue
Double value of the attribute. |
float |
floatValue
Float value of the attribute. |
int |
intValue
Integer value of the attribute. |
long |
longValue
Long value of the attribute. |
short |
shortValue
Short value of the attribute. |
String[] |
stringArrayValue
String array value of the attribute. |
String |
stringValue
String value of the attribute. |
Element Detail |
---|
public abstract String name
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
public abstract String[] stringArrayValue
public abstract Class<?>[] classArrayValue
|
JFormDesigner 5.0.4 Annotations | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |