org.qedeq.kernel.bo.log
Class DefaultModuleEventListener

java.lang.Object
  extended by org.qedeq.kernel.bo.log.DefaultModuleEventListener
All Implemented Interfaces:
ModuleEventListener

public class DefaultModuleEventListener
extends java.lang.Object
implements ModuleEventListener

Listener that writes events to a stream.

Author:
Michael Meyling

Constructor Summary
DefaultModuleEventListener()
          Constructor.
DefaultModuleEventListener(java.io.PrintStream stream)
          Constructor.
 
Method Summary
 void addModule(QedeqBo prop)
          Add module.
 void removeModule(QedeqBo prop)
          Remove module.
 void setPrintStream(java.io.PrintStream stream)
          Set output stream.
 void stateChanged(QedeqBo prop)
          Module properties (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModuleEventListener

public DefaultModuleEventListener()
Constructor.


DefaultModuleEventListener

public DefaultModuleEventListener(java.io.PrintStream stream)
Constructor.

Parameters:
stream - Print to this stream.
Method Detail

setPrintStream

public final void setPrintStream(java.io.PrintStream stream)
Set output stream.

Parameters:
stream - Output stream.

addModule

public void addModule(QedeqBo prop)
Description copied from interface: ModuleEventListener
Add module.

Specified by:
addModule in interface ModuleEventListener
Parameters:
prop - add module with this properties.

stateChanged

public void stateChanged(QedeqBo prop)
Description copied from interface: ModuleEventListener
Module properties (i.e. the status) have changed.

Specified by:
stateChanged in interface ModuleEventListener
Parameters:
prop - The state of this module changed.

removeModule

public void removeModule(QedeqBo prop)
Description copied from interface: ModuleEventListener
Remove module.

Specified by:
removeModule in interface ModuleEventListener
Parameters:
prop - This module was removed.


Copyright © 2014. All Rights Reserved.