com.glaivestone.toolbox.mv.text.swing
Class PlainTextPrintTargetDocument

java.lang.Object
  |
  +--javax.swing.text.AbstractDocument
        |
        +--javax.swing.text.PlainDocument
              |
              +--com.glaivestone.javax.swing.PlainTextDocument
                    |
                    +--com.glaivestone.toolbox.mv.text.swing.PlainTextPrintTargetDocument
All Implemented Interfaces:
javax.swing.text.Document, java.io.Serializable

public class PlainTextPrintTargetDocument
extends PlainTextDocument

A Swing document model which holds plain (un-attributed) text and supports print stream/print target append operations.

Since:
GFL 1.1
Author:
Deb Lewis
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.text.AbstractDocument
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement
 
Field Summary
 
Fields inherited from class com.glaivestone.javax.swing.PlainTextDocument
REPORT_IMPOSSIBLE_ERRORS
 
Fields inherited from class javax.swing.text.PlainDocument
lineLimitAttribute, tabSizeAttribute
 
Fields inherited from class javax.swing.text.AbstractDocument
BidiElementName, ContentElementName, ElementNameAttribute, ParagraphElementName, SectionElementName
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Constructor Summary
PlainTextPrintTargetDocument()
          Creates a new plain text document holder.
PlainTextPrintTargetDocument(java.lang.String aString)
          Creates a new plain text document holder containing the specified text.
 
Method Summary
 java.io.PrintStream getPrintStream()
          Answer the print stream which appends text to this document.
 java.io.PrintWriter getPrintWriter()
          Answer the print writer which appends text to this document.
 
Methods inherited from class com.glaivestone.javax.swing.PlainTextDocument
appendText, getText, setText
 
Methods inherited from class javax.swing.text.PlainDocument
getDefaultRootElement, getParagraphElement, insertString
 
Methods inherited from class javax.swing.text.AbstractDocument
addDocumentListener, addUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextPrintTargetDocument

public PlainTextPrintTargetDocument()
Creates a new plain text document holder.


PlainTextPrintTargetDocument

public PlainTextPrintTargetDocument(java.lang.String aString)
Creates a new plain text document holder containing the specified text.

Method Detail

getPrintStream

public java.io.PrintStream getPrintStream()
Answer the print stream which appends text to this document.


getPrintWriter

public java.io.PrintWriter getPrintWriter()
Answer the print writer which appends text to this document.


GFL 1.1 API