@Retention(value=RUNTIME) public static @interface BeanInfo.Attribute
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()| Modifier and Type | Required Element and Description |
|---|---|
String |
name
The name of the attribute.
|
| Modifier and Type | Optional Element and Description |
|---|---|
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.
|
public abstract String name
public abstract String stringValue
public abstract Class<?> classValue
public abstract long longValue
public abstract float floatValue
public abstract String[] stringArrayValue
public abstract Class<?>[] classArrayValue
Copyright (C) 2004-2017 FormDev Software GmbH. All rights reserved.