Documentation Contents |
API Enhancements to the JavaBeansTM Component API in J2SE 5.0 |
This document describes changes to the java.beans package that were introduced in version 5.0 of the JavaTM 2 Platform Standard Edition:
- 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: 4353056A new subclass of
PropertyChangeEvent
namedIndexedPropertyChangeEvent
has been added to support bound properties that use an index to identify the part of the bean that changed. Also, three methods — all namedfireIndexedPropertyChange
— 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 inIndexedTest.java
.
New Method for Creating a PropertyEditor
The bugtraq report that corresponds to this change is: 4274639A new method called
createPropertyEditor
has been added to thePropertyDescriptor
class.
Public Constructors for PropertyEditorSupport
The bugtraq report that corresponds to this change is: 4305280The two
PropertyEditorSupport
constructors are now public instead of protected, so thatPropertyEditorSupport
objects can be more easily created and used as delegates. Also, the source object is now exposed by means of newsetSource
andgetSource
methods.
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved. Please send comments using this Feedback page. |
Java Technology |