Class ChangeRegistry<T extends EventObject>
java.lang.Object
org.applecommander.change.ChangeRegistry<T>
- All Implemented Interfaces:
ChangeSource<T>
- Direct Known Subclasses:
AppleArchiveFormatFileStore, BinaryIIFileStore, BinsciiFileStore, DiskFileStoreAdapter, GamedosFileStore, PascalFileStore, RDOSFileStore, ShrinkitFileStore, ZipFileStore
The
ChangeRegistry is a base class that can be used to support change notification.
Usually the interface implements ChangeSource and the class(es) implementing the
interface extend the ChangeRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(ChangeListener<T> listener) Add a change listener.protected voidnotifyChangeListeners(T event) This is an internal method used to notify all listeners of an event.voidremoveChangeListener(ChangeListener<T> listener) Remove a change listener.
-
Constructor Details
-
ChangeRegistry
public ChangeRegistry()
-
-
Method Details
-
addChangeListener
Add a change listener.- Specified by:
addChangeListenerin interfaceChangeSource<T extends EventObject>
-
removeChangeListener
Remove a change listener.- Specified by:
removeChangeListenerin interfaceChangeSource<T extends EventObject>
-
notifyChangeListeners
This is an internal method used to notify all listeners of an event. Frequently paired with a package-private method for related classes to use.
-