![]() | 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
PropertyChangeEventnamedIndexedPropertyChangeEventhas 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 thePropertyChangeSupportutility 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
createPropertyEditorhas been added to thePropertyDescriptorclass.
Public Constructors for PropertyEditorSupport
The bugtraq report that corresponds to this change is: 4305280The two
PropertyEditorSupportconstructors are now public instead of protected, so thatPropertyEditorSupportobjects can be more easily created and used as delegates. Also, the source object is now exposed by means of newsetSourceandgetSourcemethods.
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved. Please send comments using this Feedback page. |
Java Technology |