com.glaivestone.toolbox.mv.text
Class SessionTextLogWindow

java.lang.Object
  |
  +--com.glaivestone.javax.util.EventManager
        |
        +--com.glaivestone.mv.ApplicationModel
              |
              +--com.glaivestone.mv.FrameWindowApplicationModel
                    |
                    +--com.glaivestone.toolbox.mv.text.BasicTextWindow
                          |
                          +--com.glaivestone.toolbox.mv.text.TextLogWindow
                                |
                                +--com.glaivestone.toolbox.mv.text.SessionTextLogWindow

public class SessionTextLogWindow
extends TextLogWindow

A simple text window containing plain (unstyled) text which installs itself in the standard system output streams to provide a session log window view on the console output.

Author:
Deb Lewis

Field Summary
static java.lang.String DEFAULT_WINDOW_TITLE
          The default window title
static boolean mustBeLastOpenWindow
          Configuration flag which can be used to configure a session log which won't allow itself to be closed by the user if there is any other UI activity in the application session.
 
Fields inherited from class com.glaivestone.toolbox.mv.text.BasicTextWindow
NEW_LINE, TEXT_PRINT_TARGET_SPECIFICATION, TEXT_PROPERTIES_UNSTYLED, TEXT_PROPERTIES_UNSTYLED_LOG, TEXT_TYPE_SPECIFICATION, TEXT_TYPE_STYLED, TEXT_TYPE_UNSTYLED
 
Constructor Summary
SessionTextLogWindow()
          Create a new session text log window with a default title.
SessionTextLogWindow(java.lang.String windowTitle)
          Create a new session text log window with window title windowTitle.
 
Method Summary
static TextLogWindow createWindow(java.lang.String windowTitle)
          Create a new session text log with the specified window title.
static void main(java.lang.String[] args)
           
static ApplicationView open()
          Open a view on a new session text log window.
static ApplicationView open(java.lang.String windowTitle)
          Open a view on a new session text log window with the specified window title.
static void requireSessionLogToBeLastOpenWindow()
          Specify that the session log must be the last open window in the appliation session.
 
Methods inherited from class com.glaivestone.toolbox.mv.text.TextLogWindow
flush, getPrintStream, getPrintWriter, print, println, println
 
Methods inherited from class com.glaivestone.toolbox.mv.text.BasicTextWindow
appendString, appendString, getCurrentAttributes, getText, getTextHolder, getTextSpecifications, setCurrentAttributes, setText, setText
 
Methods inherited from class com.glaivestone.mv.FrameWindowApplicationModel
getIconReference, getSubjectDescriptionHolder, getTitle
 
Methods inherited from class com.glaivestone.mv.ApplicationModel
closeWindow, getAllViews, getAllViews, getAllViews, getView, getWindow, openWindow, openWindow, requestCloseWindow, resolveResourceReference
 
Methods inherited from class com.glaivestone.javax.util.EventManager
addFirstListener, addListener, getEventTable, getEventTableForEdit, getListeners, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WINDOW_TITLE

public static java.lang.String DEFAULT_WINDOW_TITLE
The default window title


mustBeLastOpenWindow

public static boolean mustBeLastOpenWindow
Configuration flag which can be used to configure a session log which won't allow itself to be closed by the user if there is any other UI activity in the application session.

Constructor Detail

SessionTextLogWindow

public SessionTextLogWindow()
Create a new session text log window with a default title.


SessionTextLogWindow

public SessionTextLogWindow(java.lang.String windowTitle)
Create a new session text log window with window title windowTitle.

Method Detail

createWindow

public static TextLogWindow createWindow(java.lang.String windowTitle)
Create a new session text log with the specified window title. Answer the window.


open

public static ApplicationView open()
Open a view on a new session text log window. Answer the view.


open

public static ApplicationView open(java.lang.String windowTitle)
Open a view on a new session text log window with the specified window title. Answer the view.


requireSessionLogToBeLastOpenWindow

public static void requireSessionLogToBeLastOpenWindow()
Specify that the session log must be the last open window in the appliation session.


main

public static void main(java.lang.String[] args)

GFL 1.1 API