All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.text.JPlainDocument

java.lang.Object
   |
   +----com.sun.java.swing.text.JDocument
           |
           +----com.sun.java.swing.text.JPlainDocument

public class JPlainDocument
extends JDocument
A plain document that uses one font and color.

See Also:
Document, JDocument

Variable Index

 o lineLimitAttribute
Name of the attribute that specifies the maximum length of a line, if there is a maximum length.
 o tabSizeAttribute
Name of the attribute that specifies the tab size for tabs contained in the content.

Constructor Index

 o JPlainDocument(JDocument. Content)
Construct a plain text document.

Method Index

 o createLargeDocument(int)
Create a plain text model that supports undo/redo and supports relatively large amounts of content.
 o createSmallDocument()
Create a plain text model that does not support undo/redo and stores content as a simple string.

Variables

 o tabSizeAttribute
 public static final String tabSizeAttribute
Name of the attribute that specifies the tab size for tabs contained in the content. The type for the value is Integer.

 o lineLimitAttribute
 public static final String lineLimitAttribute
Name of the attribute that specifies the maximum length of a line, if there is a maximum length. The type for the value is Integer.

Constructors

 o JPlainDocument
 public JPlainDocument(JDocument. Content c)
Construct a plain text document.

Parameters:
c - The container for the content.

Methods

 o createSmallDocument
 public static final Document createSmallDocument()
Create a plain text model that does not support undo/redo and stores content as a simple string.

 o createLargeDocument
 public static final Document createLargeDocument(int buffSize)
Create a plain text model that supports undo/redo and supports relatively large amounts of content.


All Packages  Class Hierarchy  This Package  Previous  Next  Index