JFormDesigner 5.0.4 Annotations

com.jformdesigner.annotations
Annotation Type BeanInfo.Attribute


@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.

Since:
5.0
See Also:
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

name

public abstract String name
The name of the attribute.

stringValue

public abstract String stringValue
String value of the attribute.

Default:
""

classValue

public abstract Class<?> classValue
Class value of the attribute.

Default:
java.lang.Class.class

booleanValue

public abstract boolean booleanValue
Boolean value of the attribute.

Default:
false

charValue

public abstract char charValue
Character value of the attribute.

Default:
0

byteValue

public abstract byte byteValue
Byte value of the attribute.

Default:
-128

shortValue

public abstract short shortValue
Short value of the attribute.

Default:
-32768

intValue

public abstract int intValue
Integer value of the attribute.

Default:
-2147483648

longValue

public abstract long longValue
Long value of the attribute.

Default:
-9223372036854775808L

floatValue

public abstract float floatValue
Float value of the attribute.

Default:
1.401298464324817E-45f

doubleValue

public abstract double doubleValue
Double value of the attribute.

Default:
4.9E-324

stringArrayValue

public abstract String[] stringArrayValue
String array value of the attribute.

Default:
{}

classArrayValue

public abstract Class<?>[] classArrayValue
Class array value of the attribute.

Default:
{}

JFormDesigner 5.0.4 Annotations

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.