FreeHEP API
Version current

org.freehep.record.loop.event
Interface RecordListenerManager

All Known Subinterfaces:
ChainableRecordListener, SequentialRecordLoop
All Known Implementing Classes:
org.freehep.record.loop.event.ChainableRecordAdapter, SequentialRecordLoopImpl

public interface RecordListenerManager

This interface should be implemented by any class that can register single RecordListener objects.

Version:
$Id: RecordListenerManager.java,v 1.1 2003/05/06 23:02:06 tonyj Exp $
Author:
patton
Source Code:
RecordListenerManager.java

Method Summary
 void addRecordListener(RecordListener listener)
          Adds the specified RecordListener to this object.
 RecordListener getRecordListener()
          Returns this objects RecordListener if there is one.
 void removeRecordListener(RecordListener listener)
          Removes the specified listener from this object if it is this objects listener, otherwise it does nothing.
 

Method Detail

addRecordListener

public void addRecordListener(RecordListener listener)
                       throws TooManyListenersException
Adds the specified RecordListener to this object.

Parameters:
listener - the RecordListener to add.
Throws:
TooManyListenersException - if a listener is already present.
See Also:
removeRecordListener(org.freehep.record.loop.event.RecordListener)

getRecordListener

public RecordListener getRecordListener()
Returns this objects RecordListener if there is one.

Returns:
this objects RecordListener if there is one.

removeRecordListener

public void removeRecordListener(RecordListener listener)
Removes the specified listener from this object if it is this objects listener, otherwise it does nothing. If removed, a finish event is sent to the listener if it has been configured so that is can clean up any resources it holds.

Parameters:
listener - the RecordListener to remove.
See Also:
addRecordListener(org.freehep.record.loop.event.RecordListener)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.