@Documented @Target(METHOD) @Retention(RUNTIME) public @interface BeanProperty
BeanInfo classes. This annotation is not used
if the annotated class has a corresponding user-defined BeanInfo
class, which does not imply the automatic analysis. If both the read and the
write methods of the property are annotated, then the read method annotation
will have more priority and replace the write method annotation.BeanInfo.getPropertyDescriptors()| Modifier and Type | Optional Element | Description |
|---|---|---|
boolean |
bound |
The value that indicates whether the annotated property can be
a
bound property or not. |
String |
description |
The
short description
for the descriptor
of the annotated property. |
String[] |
enumerationValues |
The array of names for the public static fields
that contains the valid values of the annotated property.
|
boolean |
expert |
The value that indicates whether the annotated property is
an
expert property or not. |
boolean |
hidden |
The value that indicates whether the annotated property is
a
hidden property or not. |
boolean |
preferred |
The value that indicates whether the annotated property is
a
preferred property or not. |
boolean |
required |
The value that indicates whether the annotated property is
a required property or not.
|
boolean |
visualUpdate |
The value that indicates whether the corresponding component
is repainted after the annotated property got changed or not.
|
boolean bound
bound property or not.
This value applies only to the beans that have the
propertyChange event set.true if the annotated property can be a bound property;
false otherwise.boolean expert
expert property or not.true if the annotated property is an expert property;
false otherwise.boolean hidden
hidden property or not.true if the annotated property is a hidden property;
false otherwise.boolean preferred
preferred property or not.true if the annotated property is a preferred property;
false otherwise.boolean required
true if the annotated property is a required property;
false otherwise.boolean visualUpdate
true if the corresponding component is repainted;
false otherwise.String description
short description
for the descriptor
of the annotated property.String[] enumerationValues
enumerationValues
feature attribute
that must contain the following items per each property value:
a displayable name for the property value, the actual property value,
and a Java code piece used for the code generator. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2