APIdia Launch Partner
Top Description Methods
java.beans

public @Interface JavaBean

extends Annotation
Annotations
@Documented
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Documented, .Retention, .Target

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.
Author
Sergey A. Malenkov
Since
9
See Also
BeanInfo#getBeanDescriptor

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the default event set, or an empty string if the name is not set.
defaultEventSet
()

The name of the default event set is used to calculate its index in the array of event sets defined in the annotated class.

public String

Returns:

the name of the default property, or an empty string if the name is not set.
defaultProperty
()

The name of the default property is used to calculate its index in the array of properties defined in the annotated class.

public String

Returns:

the bean description, or an empty string if the description is not set.
description
()

The short description for the bean descriptor of the annotated class.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

defaultEventSetback to summary
public String defaultEventSet()

The name of the default event set is used to calculate its index in the array of 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 the Introspector depending on its state.

Returns:String

the name of the default event set, or an empty string if the name is not set.

defaultPropertyback to summary
public String defaultProperty()

The name of the default property is used to calculate its index in the array of 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 the Introspector depending on its state.

Returns:String

the name of the default property, or an empty string if the name is not set.

descriptionback to summary
public String description()

The short description for the bean descriptor of the annotated class.

Returns:String

the bean description, or an empty string if the description is not set.