Results 1 to 2 of 2
Thread: addPropertyChangeListener
- 03-02-2010, 03:41 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 46
- Rep Power
- 0
- 03-02-2010, 04:03 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
The object that wants to fire PropertyChangeEvents to PropertyChangeListeners should have a PropertyChangeSupport member object. Listeners register themselves to this PropertyChangeSupport class (optionally with the name of the event they're interested in). Normally those classes that own the PropertyChangeSupport object have delegating add- and remove- propertyChangeListener methods because it's non of the listeners business how and where they are finally registered.
Read the API documentation for all the mentioned classes.
kind regards,
Jos


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks