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

public class ChangeRegistry<T extends EventObject> extends Object implements ChangeSource<T>
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 Details

    • ChangeRegistry

      public ChangeRegistry()
  • Method Details

    • addChangeListener

      public void addChangeListener(ChangeListener<T> listener)
      Add a change listener.
      Specified by:
      addChangeListener in interface ChangeSource<T extends EventObject>
    • removeChangeListener

      public void removeChangeListener(ChangeListener<T> listener)
      Remove a change listener.
      Specified by:
      removeChangeListener in interface ChangeSource<T extends EventObject>
    • notifyChangeListeners

      protected void notifyChangeListeners(T event)
      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.