4/19/25, 4:02 PM AbstractDocument (Java Platform SE 8 )
Java™ Platform
Standard Ed. 8
OVERVIEW PACKAGE CLASS USE TREE DEPRECATED INDEX HELP
Java™ Platform
Standard Ed 8
All Classes All PREV CLASS NEXT CLASS FRAMES NO FRAMES
Packages SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
java.applet
java.awt javax.swing.text
java.awt.color
java.awt.datatrans
Class AbstractDocument
java.awt.dnd
java.awt.event java.lang.Object
java.awt.font javax.swing.text.AbstractDocument
java.awt.geom
All Implemented Interfaces:
java.awt.im
java.awt.im.spi Serializable, Document
java.awt.image
Direct Known Subclasses:
java awt image ren
DefaultStyledDocument, PlainDocument
All Classes
AbstractAction public abstract class AbstractDocument
AbstractAnnotatio
extends Object
AbstractAnnotatio
AbstractAnnotatio implements Document, Serializable
AbstractBorder
AbstractButton An implementation of the document interface to serve as a basis for
AbstractCellEditor implementing various kinds of documents. At this level there is very
AbstractChronolog little policy, so there is a corresponding increase in difficulty of use.
AbstractCollection
AbstractColorChoo This class implements a locking mechanism for the document. It
AbstractDocument
AbstractDocument
allows multiple readers or one writer, and writers must wait until all
AbstractDocument observers of the document have been notified of a previous change
AbstractDocument before beginning another mutation to the document. The read lock is
AbstractElementV acquired and released using the render method. A write lock is
AbstractElementV
acquired by the methods that mutate the document, and are held for
AbstractElementV
AbstractExecutorS the duration of the method call. Notification is done on the thread
AbstractInterruptib that produced the mutation, and the thread has full read access to
AbstractLayoutCac the document for the duration of the notification, but other readers
AbstractLayoutCac
are kept out until the notification has finished. The notification is a
AbstractList
beans event notification which does not allow any further mutations
AbstractListModel
AbstractMap until all listeners have been notified.
AbstractMap.Simp
AbstractMap.Simp Any models subclassed from this class and used in conjunction with a
AbstractMarshalle text component that has a look and feel implementation that is
AbstractMethodErr
derived from BasicTextUI may be safely updated asynchronously,
AbstractOwnableS
AbstractPreference
because all access to the View hierarchy is serialized by BasicTextUI
AbstractProcessor if the document is of type AbstractDocument. The locking assumes
AbstractQueue that an independent thread will access the View hierarchy only from
AbstractQueuedLo the DocumentListener methods, and that there will be only one event
AbstractQueuedSy
thread active at a time.
AbstractRegionPai
AbstractRegionPai
AbstractRegionPai
If concurrency support is desired, there are the following additional
AbstractScriptEng implications. The code path for any DocumentListener
AbstractSelectable implementation and any UndoListener implementation must be
AbstractSelectionK threadsafe, and not access the component lock if trying to be safe
AbstractSelector
from deadlocks. The repaint and revalidate methods on
AbstractSequentia
JC f
https://docs.oracle.com/javase/8/docs/api/ 1/1