sofya.ed.structural
Class EventDispatcherConfiguration

java.lang.Object
  extended by sofya.ed.structural.EventDispatcherConfiguration

public class EventDispatcherConfiguration
extends java.lang.Object

An event dispatcher configuration stores global configuration parameters and resources that may be required by various components attached to an event dispatcher.

Version:
03/10/2006
Author:
Alex Kinneer

Constructor Summary
EventDispatcherConfiguration()
          Creates a new event dispatcher configuration set to defaults.
 
Method Summary
 void clear()
          Resets this configuration to defaults.
 java.io.PrintStream getStandardError()
          Gets the output stream to which standard error outputs will be printed.
 java.io.PrintStream getStandardOutput()
          Gets the output stream to which standard outputs will be printed.
 java.io.PrintStream getSubjectOutput()
          Gets the output stream to which subject outputs will be printed.
 boolean isSubjectDispatcher()
          Reports whether the subject program is itself an event dispatcher.
 void setStandardError(java.io.PrintStream stderr)
          Sets the output stream to which standard error outputs will be printed.
 void setStandardOutput(java.io.PrintStream stdout)
          Sets the output stream to which standard outputs will be printed.
 void setSubjectIsDispatcher(boolean status)
          Specifies whether the subject program is itself an event dispatcher.
 void setSubjectOutput(java.io.PrintStream sbjout)
          Sets the output stream to which subject outputs will be printed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDispatcherConfiguration

public EventDispatcherConfiguration()
Creates a new event dispatcher configuration set to defaults.

Method Detail

clear

public void clear()
Resets this configuration to defaults.


getStandardOutput

public java.io.PrintStream getStandardOutput()
Gets the output stream to which standard outputs will be printed.

Returns:
The output stream on which standard outputs produced by the event dispatcher and any registered components will be printed.

setStandardOutput

public void setStandardOutput(java.io.PrintStream stdout)
Sets the output stream to which standard outputs will be printed.

Parameters:
stdout - The output stream on which standard outputs produced by the event dispatcher and any registered components should be printed.

getStandardError

public java.io.PrintStream getStandardError()
Gets the output stream to which standard error outputs will be printed.

Returns:
The output stream on which standard error outputs produced by the event dispatcher and any registered components will be printed.

setStandardError

public void setStandardError(java.io.PrintStream stderr)
Sets the output stream to which standard error outputs will be printed.

Parameters:
stderr - The output stream on which standard error outputs produced by the event dispatcher and any registered components should be printed.

getSubjectOutput

public java.io.PrintStream getSubjectOutput()
Gets the output stream to which subject outputs will be printed.

Returns:
The output stream on which outputs produced by the subject program will be printed.

setSubjectOutput

public void setSubjectOutput(java.io.PrintStream sbjout)
Sets the output stream to which subject outputs will be printed.

Parameters:
sbjout - The output stream on which outputs produced by the subject program should be printed.

isSubjectDispatcher

public boolean isSubjectDispatcher()
Reports whether the subject program is itself an event dispatcher.

Returns:
true if the subject program has been identified as being an event dispatcher.

setSubjectIsDispatcher

public void setSubjectIsDispatcher(boolean status)
Specifies whether the subject program is itself an event dispatcher.

Parameters:
status - true to indicate that the subject program is itself an event dispatcher, false otherwise.