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
-
lineLimitAttribute
- Name of the attribute that specifies the maximum
length of a line, if there is a maximum length.
-
tabSizeAttribute
- Name of the attribute that specifies the tab
size for tabs contained in the content.
-
JPlainDocument(JDocument. Content)
- Construct a plain text document.
-
createLargeDocument(int)
- Create a plain text model that supports undo/redo
and supports relatively large amounts of content.
-
createSmallDocument()
- Create a plain text model that does not support
undo/redo and stores content as a simple string.
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.
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.
JPlainDocument
public JPlainDocument(JDocument. Content c)
- Construct a plain text document.
- Parameters:
- c - The container for the content.
createSmallDocument
public static final Document createSmallDocument()
- Create a plain text model that does not support
undo/redo and stores content as a simple string.
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