APIdia Launch Partner
Top Description Methods
javax.swing

public @Interface SwingContainer

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

An annotation used to specify some swing-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.

The isContainer feature attribute was introduced primarily for the Swing library. All Swing components extend the Container class by design, so the builder tool assumes that all Swing components are containers. The BeanInfo classes with the isContainer attribute allow to directly specify whether a Swing component is a container or not.

Author
Sergey A. Malenkov
Since
9

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the getter method in the annotated class, which returns the corresponding Swing container, or an empty string if the method name is not set.
delegate
()

The name of the getter method in the annotated class, which returns the corresponding Swing container, if it is not recommended to add subcomponents to the annotated class directly.

public boolean

Returns:

true if the annotated class is a Swing container; false otherwise.
value
()

The value that indicates whether the annotated class can be used as a container for other Swing components or not.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

delegateback to summary
public String delegate()

The name of the getter method in the annotated class, which returns the corresponding Swing container, if it is not recommended to add subcomponents to the annotated class directly.

Returns:String

the name of the getter method in the annotated class, which returns the corresponding Swing container, or an empty string if the method name is not set.

valueback to summary
public boolean value()

The value that indicates whether the annotated class can be used as a container for other Swing components or not.

Returns:boolean

true if the annotated class is a Swing container; false otherwise.