com.bbn.swede.core.libraries
Class LibraryChangeSupport

java.lang.Object
  extended bycom.bbn.swede.core.libraries.LibraryChangeSupport

public class LibraryChangeSupport
extends Object

A utility class that will allow classes to use the delegate pattern to easily handle library change listeners.

Author:
aperezlo

Constructor Summary
LibraryChangeSupport()
           
 
Method Summary
 void addLibraryChangeListener(ILibraryChangeListener lcl)
          Registers a listener for library change events.
 void fireLibraryChange(LibraryChangeEvent lce)
          Notifies all of this object's listeners of the event.
 void removeLibraryChangeListener(ILibraryChangeListener lcl)
          Unregisters a listener from library change events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryChangeSupport

public LibraryChangeSupport()
Method Detail

fireLibraryChange

public void fireLibraryChange(LibraryChangeEvent lce)
Notifies all of this object's listeners of the event.

Parameters:
lce - the library change event

removeLibraryChangeListener

public void removeLibraryChangeListener(ILibraryChangeListener lcl)
Unregisters a listener from library change events. If the specified listener is not registered, this method has no effect.

Parameters:
lcl - the listener that should be unregistered

addLibraryChangeListener

public void addLibraryChangeListener(ILibraryChangeListener lcl)
Registers a listener for library change events. Duplicate registrations have no effect.

Parameters:
lcl - the listener that wants to register for events


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.