Java Platform 1.2

Package java.beans

Contains classes related to Java Beans development.

See:
          Description

Interface Summary
AppletInitializer This interface is designed to work in collusion with java.beans.Beans.instantiate.
BeanInfo A bean implementor who wishes to provide explicit information about their bean may provide a BeanInfo class that implements this BeanInfo interface and provides explicit information about the methods, properties, events, etc, of their bean.
Customizer A customizer class provides a complete custom GUI for customizing a target Java Bean.
DesignMode This interface is intended to be implemented by, or delegated from, instances of java.beans.BeanContext, in order to propagate to its nested hierarchy of java.beans.BeanContextChild instances, the current "designTime" property.
PropertyChangeListener A "PropertyChange" event gets fired whenever a bean changes a "bound" property.
PropertyEditor A PropertyEditor class provides support for GUIs that want to allow users to edit a property value of a given type.
VetoableChangeListener A VetoableChange event gets fired whenever a bean changes a "constrained" property.
Visibility Under some circumstances a bean may be run on servers where a GUI is not available.
 

Class Summary
BeanDescriptor A BeanDescriptor provides global information about a "bean", including its Java class, its displayName, etc.
Beans This class provides some general purpose beans control methods.
EventSetDescriptor An EventSetDescriptor describes a group of events that a given Java bean fires.
FeatureDescriptor The FeatureDescriptor class is the common baseclass for PropertyDescriptor, EventSetDescriptor, and MethodDescriptor, etc.
IndexedPropertyDescriptor An IndexedPropertyDescriptor describes a property that acts like an array and has an indexed read and/or indexed write method to access specific elements of the array.
Introspector The Introspector class provides a standard way for tools to learn about the properties, events, and methods supported by a target Java Bean.
MethodDescriptor A MethodDescriptor describes a particular method that a Java Bean supports for external access from other components.
ParameterDescriptor The ParameterDescriptor class allows bean implementors to provide additional information on each of their parameters, beyond the low level type information provided by the java.lang.reflect.Method class.
PropertyChangeEvent A "PropertyChange" event gets delivered whenever a bean changes a "bound" or "constrained" property.
PropertyChangeSupport This is a utility class that can be used by beans that support bound properties.
PropertyDescriptor A PropertyDescriptor describes one property that a Java Bean exports via a pair of accessor methods.
PropertyEditorManager The PropertyEditorManager can be used to locate a property editor for any given type name.
PropertyEditorSupport This is a support class to help build property editors.
SimpleBeanInfo This is a support class to make it easier for people to provide BeanInfo classes.
VetoableChangeSupport This is a utility class that can be used by beans that support constrained properties.
 

Exception Summary
IntrospectionException Thrown when an exception happens during Introspection.
PropertyVetoException A PropertyVetoException is thrown when a proposed change to a property represents an unacceptable value.
 

Package java.beans Description

Contains classes related to Java Beans development. A few of the classes are used by beans while they run in an application. For example, the event classes are used by beans that fire property and vetoable change events (see PropertyChangeEvent). How ever, most of the classes in this package are meant to be used by a bean editor (that is, a devel opment environment for customizing and putting together beans to create an application). In particular, these classes help the bean editor create a user interface that the user can use to cus tomize the bean. For example, a bean may contain a property of a special type that a bean editor may not know how to handle. By using the PropertyEditor interface, a bean developer can provide an editor for this special type.

To minimize the resources used by a bean, the classes used by bean editors are loaded only when the bean is being edited. They are not needed while the bean is running in an application and therefore not loaded. This information is kept in what's called a bean-info (see BeanInfo).

Since:
JDK1.1

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.