Download the JDK
Search the Tutorials
Hide the TOC
Properties
Simple Properties
Bound Properties
Constrained Properties
Indexed Properties
Trail: JavaBeans(TM)
« Previous • Trail • Next »
Lesson: Properties

> In the following sections you will learn how to implement bean properties. A bean property is a named attribute of a bean that can affect its behavior or appearance. Examples of bean properties include color, label, font, font size, and display size.

> The JavaBeans™ specification defines the following types of bean properties:

> - Simple – A bean property with a single value whose changes are independent of changes in any other property.

> - Indexed – A bean property that supports a range of values instead of a single value.

> - Bound – A bean property for which a change to the property results in a notification being sent to some other bean.

> - Constrained – A bean property for which a change to the property results in validation by another bean. The other bean may reject the change if it is not appropriate.

> Bean properties can also be classified as follows:

> - Writable – A bean property that can be changed
>   - Standard
>   - Expert
>   - Preferred
> - Read Only – A bean property that cannot be changed.
> - Hidden – A bean property that can be changed. However, these properties are not disclosed with the `BeanInfo` class
> BeanBuilder uses this schema to group and represent properties in the Properties window.

« Previous • Trail • Next »
Previous page: Previous Lesson
Next page: Simple Properties