Package com.jformdesigner.annotations
Annotation Type BeanInfo.Attribute
-
@Retention(RUNTIME) public static @interface BeanInfo.Attribute
This annotation can be used to specify additional attributes forBeanDescriptorandPropertyDescriptor. Each attributes consists of anameand a value (one ofstringValue(),classValue(),booleanValue(),charValue(),byteValue(),shortValue(),intValue(),longValue(),floatValue(),doubleValue(),stringArrayValue()orclassArrayValue()). Only one of the*valueattributes must be specified.Example for specifying this annotation in a
PropertyDescannotation:@PropertyDesc(attributes={ @Attribute(name="readOnly", booleanValue=true), @Attribute(name="notRestoreDefault", booleanValue=true), }) public int getSomething() { return something; }See https://www.formdev.com/jformdesigner/doc/java-beans/#beaninfo for a list of attributes supported by JFormDesigner.- See Also:
BeanInfo.attributes(),PropertyDesc.attributes()
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanbooleanValueBoolean value of the attribute.bytebyteValueByte value of the attribute.charcharValueCharacter value of the attribute.Class<?>[]classArrayValueClass array value of the attribute.Class<?>classValueClass value of the attribute.doubledoubleValueDouble value of the attribute.floatfloatValueFloat value of the attribute.intintValueInteger value of the attribute.longlongValueLong value of the attribute.shortshortValueShort value of the attribute.String[]stringArrayValueString array value of the attribute.StringstringValueString value of the attribute.
-
-
-
Element Detail
-
name
String name
The name of the attribute.
-
-
-
stringValue
String stringValue
String value of the attribute.- Default:
- ""
-
-
-
classValue
Class<?> classValue
Class value of the attribute.- Default:
- java.lang.Class.class
-
-
-
stringArrayValue
String[] stringArrayValue
String array value of the attribute.- Default:
- {}
-
-
-
classArrayValue
Class<?>[] classArrayValue
Class array value of the attribute.- Default:
- {}
-
-