< prev index next >

jdk/src/java.desktop/share/classes/java/beans/BeanProperty.java

Print this page




  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package java.beans;
  26 
  27 import java.lang.annotation.Documented;
  28 import java.lang.annotation.Retention;
  29 import java.lang.annotation.Target;
  30 
  31 import static java.lang.annotation.ElementType.METHOD;
  32 import static java.lang.annotation.RetentionPolicy.RUNTIME;
  33 
  34 /**
  35  * An annotation used to specify some property-related information
  36  * for the automatically generated {@link BeanInfo} classes.
  37  * This annotation is not used if the annotated class
  38  * has a corresponding user-defined {@code BeanInfo} class,
  39  * which does not imply the automatic analysis.
  40  *
  41  * @see BeanInfo#getPropertyDescriptors
  42  * @since 1.9
  43  *
  44  * @author Sergey A. Malenkov
  45  */
  46 @Documented
  47 @Target({METHOD})
  48 @Retention(RUNTIME)
  49 public @interface BeanProperty {
  50     /**
  51      * The value that indicates whether the annotated property can be
  52      * a {@link PropertyDescriptor#isBound bound} property or not.
  53      * This value applies only to the beans that have the
  54      * {@link PropertyChangeListener propertyChange} event set.
  55      *
  56      * @return {@code true} if the annotated property can be a bound property;
  57      *         {@code false} otherwise.
  58      */
  59     boolean bound() default true;
  60 
  61     /**
  62      * The value that indicates whether the annotated property is




  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package java.beans;
  26 
  27 import java.lang.annotation.Documented;
  28 import java.lang.annotation.Retention;
  29 import java.lang.annotation.Target;
  30 
  31 import static java.lang.annotation.ElementType.METHOD;
  32 import static java.lang.annotation.RetentionPolicy.RUNTIME;
  33 
  34 /**
  35  * An annotation used to specify some property-related information
  36  * for the automatically generated {@link BeanInfo} classes.
  37  * This annotation is not used if the annotated class
  38  * has a corresponding user-defined {@code BeanInfo} class,
  39  * which does not imply the automatic analysis.
  40  *
  41  * @see BeanInfo#getPropertyDescriptors
  42  * @since 9
  43  *
  44  * @author Sergey A. Malenkov
  45  */
  46 @Documented
  47 @Target({METHOD})
  48 @Retention(RUNTIME)
  49 public @interface BeanProperty {
  50     /**
  51      * The value that indicates whether the annotated property can be
  52      * a {@link PropertyDescriptor#isBound bound} property or not.
  53      * This value applies only to the beans that have the
  54      * {@link PropertyChangeListener propertyChange} event set.
  55      *
  56      * @return {@code true} if the annotated property can be a bound property;
  57      *         {@code false} otherwise.
  58      */
  59     boolean bound() default true;
  60 
  61     /**
  62      * The value that indicates whether the annotated property is


< prev index next >