Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.text.AbstractDocument | +--com.sun.java.swing.text.PlainDocument
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Inner classes inherited from class com.sun.java.swing.text.AbstractDocument | |
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement |
Field Summary | |
static java.lang.String | lineLimitAttribute
Name of the attribute that specifies the maximum length of a line, if there is a maximum length. |
static java.lang.String | tabSizeAttribute
Name of the attribute that specifies the tab size for tabs contained in the content. |
Fields inherited from class com.sun.java.swing.text.AbstractDocument | |
BAD_LOCATION, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName |
Constructor Summary | |
PlainDocument()
Constructs a plain text document. |
|
PlainDocument(AbstractDocument.Content c)
Constructs a plain text document. |
Method Summary | |
AbstractDocument.AbstractElement | createDefaultRoot()
Creates the root element to be used to represent the default document structure. |
Element | getDefaultRootElement()
Gets the default root element for the document model. |
void | insertUpdate(AbstractDocument.DefaultDocumentEvent chng,
AttributeSet attr)
Updates document structure as a result of text insertion. |
void | removeUpdate(AbstractDocument.DefaultDocumentEvent chng)
Updates any document structure as a result of text removal. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String tabSizeAttribute
public static final java.lang.String lineLimitAttribute
Constructor Detail |
public PlainDocument()
protected PlainDocument(AbstractDocument.Content c)
c
- the container for the contentMethod Detail |
public Element getDefaultRootElement()
protected AbstractDocument.AbstractElement createDefaultRoot()
protected void insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)
chng
- the change event describing the dit
attr
- the set of attributes for the inserted textprotected void removeUpdate(AbstractDocument.DefaultDocumentEvent chng)
chng
- the change event describing the editOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |