com.glaivestone.toolbox.mv.text
Class TextLogWindow

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
Direct Known Subclasses:
SessionTextLogWindow

public class TextLogWindow
extends BasicTextWindow

A simple text log window containing plain (unstyled) text.


Field Summary
static java.lang.String DEFAULT_WINDOW_TITLE
          The default window title
 
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
TextLogWindow()
           
TextLogWindow(java.lang.String windowTitle)
           
 
Method Summary
static TextLogWindow createWindow(java.lang.String windowTitle)
          Create a new window with the specified window title.
 void flush()
          Flush the contents of the output stream.
 java.io.PrintStream getPrintStream()
          Answer the print strea on the log window text.
 java.io.PrintWriter getPrintWriter()
          Answer the print writer on the log window text.
static void main(java.lang.String[] args)
           
static ApplicationView open()
          Open a view on a new text window.
static ApplicationView open(java.lang.String windowTitle)
          Open a view on a new text window with the specified window title.
 void print(java.lang.String text)
          Append the given text to the text.
 void println()
          Append an empty line to the text.
 void println(java.lang.String text)
          Append a line containing the given text to the text.
 
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

Constructor Detail

TextLogWindow

public TextLogWindow()

TextLogWindow

public TextLogWindow(java.lang.String windowTitle)
Method Detail

createWindow

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


open

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


open

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


getPrintStream

public java.io.PrintStream getPrintStream()
Answer the print strea on the log window text.


getPrintWriter

public java.io.PrintWriter getPrintWriter()
Answer the print writer on the log window text.


flush

public void flush()
Flush the contents of the output stream.


print

public void print(java.lang.String text)
Append the given text to the text.


println

public void println()
Append an empty line to the text.


println

public void println(java.lang.String text)
Append a line containing the given text to the text.


main

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

GFL 1.1 API