JavaBeans API Enhancements in Java SE 5.0 (original) (raw)
API Enhancements to the JavaBeans Component API in Java SE 5.0
This document describes changes to the
java.beans
package that were introduced in Java SE 5.0:
- Support for IndexedPropertyChangeEvent
- New Method for Creating a PropertyEditor
- Public Constructors for PropertyEditorSupport
Support for IndexedPropertyChangeEvent
The bugtraq report that corresponds to this change is: 4353056
A new subclass of PropertyChangeEvent
named[IndexedPropertyChangeEvent](../../../api/java/beans/IndexedPropertyChangeEvent.html)
has been added to support bound properties that use an index to identify the part of the bean that changed. Also, three methods, all named [fireIndexedPropertyChange](../../../api/java/beans/PropertyChangeSupport.html#fireIndexedPropertyChange-java.lang.String-int-java.lang.Object-java.lang.Object-)
, have been added to thePropertyChangeSupport
utility class to support firing indexed property change events. You can find an example of using indexed property change events in [IndexedTest.java](examples/IndexedTest.java)
.
New Method for Creating a PropertyEditor
The bugtraq report that corresponds to this change is: 4274639
A new method called [createPropertyEditor](../../../api/java/beans/PropertyDescriptor.html#createPropertyEditor-java.lang.Object-)
has been added to thePropertyDescriptor
class.
Public Constructors for PropertyEditorSupport
The bugtraq report that corresponds to this change is: 4305280
The two PropertyEditorSupport constructors are now public instead of protected, so that PropertyEditorSupport
objects can be more easily created and used as delegates. Also, the source object is now exposed by means of new setSource and getSource methods.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved.