com.glaivestone.toolbox.mv.text
Class SessionStreamWindowController

java.lang.Object
  |
  +--com.glaivestone.mv.WindowEventAdaptor
        |
        +--com.glaivestone.toolbox.mv.text.SessionStreamWindowController
All Implemented Interfaces:
java.util.EventListener, WindowEventListener

public class SessionStreamWindowController
extends WindowEventAdaptor

Installed on a window used as the system output or error stream. Provides services to install a log stream application as the standard system output or error stream. Ensures that the system stream is reset to something suitable when the stream window is closed.

Author:
Deb Lewis

Constructor Summary
SessionStreamWindowController(java.io.PrintStream appPrintStream, java.awt.Frame aWindow)
           
 
Method Summary
 void confirmWindowClose(WindowEvent event)
          Confirmation event that a window is about to be closed if the operation is not vetoed by a listener.
 void installInSessionStreams()
          Install the print target window as the current session output streams.
 void installInSessionStreams(boolean captureSysOut, boolean captureSysErr)
          Install the print target window as the current session output streams.
 void mustBeLastOpenWindow(boolean mustBeLastOpenWindow)
          Specify whether the session output target window should insist on being the last guy standing in the current UI session.
 void windowClosing(WindowEvent event)
          Notification event that a window is going to be closed.
 
Methods inherited from class com.glaivestone.mv.WindowEventAdaptor
windowClosed, windowOpened
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionStreamWindowController

public SessionStreamWindowController(java.io.PrintStream appPrintStream,
                                     java.awt.Frame aWindow)
Method Detail

confirmWindowClose

public void confirmWindowClose(WindowEvent event)
                        throws VetoException
Confirmation event that a window is about to be closed if the operation is not vetoed by a listener.

Specified by:
confirmWindowClose in interface WindowEventListener
Overrides:
confirmWindowClose in class WindowEventAdaptor
VetoException
See Also:
WindowEventListener.confirmWindowClose(WindowEvent)

installInSessionStreams

public void installInSessionStreams()
Install the print target window as the current session output streams.


installInSessionStreams

public void installInSessionStreams(boolean captureSysOut,
                                    boolean captureSysErr)
Install the print target window as the current session output streams.


mustBeLastOpenWindow

public void mustBeLastOpenWindow(boolean mustBeLastOpenWindow)
Specify whether the session output target window should insist on being the last guy standing in the current UI session.


windowClosing

public void windowClosing(WindowEvent event)
Notification event that a window is going to be closed.

Specified by:
windowClosing in interface WindowEventListener
Overrides:
windowClosing in class WindowEventAdaptor
See Also:
WindowEventListener.windowClosing(com.glaivestone.mv.WindowEvent)

GFL 1.1 API