JavaBean (Java SE 13 & JDK 13 )
@Documented @Target(TYPE) @Retention(RUNTIME) public @interface JavaBean
An annotation used to specify some class-related information
for the automatically generated 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.
- Since:
- 9
- See Also:
BeanInfo.getBeanDescriptor()
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdefaultEventSetThe name of the default event set is used to calculate its
indexin thearrayof event sets defined in the annotated class.StringdefaultPropertyThe name of the default property is used to calculate its
indexin thearrayof properties defined in the annotated class.StringdescriptionThe
short descriptionfor thebean descriptorof the annotated class.
-
Element Details
-
description
- Returns:
- the bean description, or an empty string if the description is not set.
- Default:
- ""
-
defaultProperty
The name of the default property is used to calculate its
indexin thearrayof properties defined in the annotated class. If the name is not set or the annotated class does not define a property with the specified name, the default property index will be calculated automatically by theIntrospectordepending on its state.- Default:
- ""
-
defaultEventSet
The name of the default event set is used to calculate its
indexin thearrayof event sets defined in the annotated class. If the name is not set or the annotated class does not define an event set with the specified name, the default event set index will be calculated automatically by theIntrospectordepending on its state.- Returns:
- the name of the default event set, or an empty string if the name is not set.
- Default:
- ""
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.