Uses of Interface
javax.swing.text.Document
Packages that use Document
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides for events fired by Swing components.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors.Provides a class (
RTFEditorKit) for creating Rich-Text-Format text
editors.-
Uses of Document in javax.swing
Methods in javax.swing that return DocumentModifier and TypeMethodDescriptionprotected DocumentJTextArea.createDefaultModel()Creates the default implementation of the model to be used at construction if one isn't explicitly given.protected DocumentJTextField.createDefaultModel()Creates the default implementation of the model to be used at construction if one isn't explicitly given.Methods in javax.swing with parameters of type DocumentModifier and TypeMethodDescriptionvoidJFormattedTextField.setDocument(Document doc) Associates the editor with a text document.voidJTextField.setDocument(Document doc) Associates the editor with a text document.voidJTextPane.setDocument(Document doc) Associates the editor with a text document.Constructors in javax.swing with parameters of type DocumentModifierConstructorDescriptionJPasswordField(Document doc, String txt, int columns) Constructs a newJPasswordFieldthat uses the given text storage model and the given number of columns.Constructs a new JTextArea with the given document model, and defaults for all of the other arguments (null, 0, 0).Constructs a new JTextArea with the specified number of rows and columns, and the given model.JTextField(Document doc, String text, int columns) Constructs a newJTextFieldthat uses the given text storage model and the given number of columns. -
Uses of Document in javax.swing.event
Methods in javax.swing.event that return DocumentModifier and TypeMethodDescriptionDocumentEvent.getDocument()Gets the document that sourced the change event. -
Uses of Document in javax.swing.text
Subinterfaces of Document in javax.swing.textModifier and TypeInterfaceDescriptioninterfaceInterface for a generic styled document.Classes in javax.swing.text that implement DocumentModifier and TypeClassDescriptionclassAn implementation of the document interface to serve as a basis for implementing various kinds of documents.classA document that can be marked up with character and paragraph styles in a manner similar to the Rich Text Format.classA plain document that maintains no character attributes.Methods in javax.swing.text that return DocumentModifier and TypeMethodDescriptionDefaultEditorKit.createDefaultDocument()Creates an uninitialized text storage model (PlainDocument) that is appropriate for this type of editor.abstract DocumentEditorKit.createDefaultDocument()Creates an uninitialized text storage model that is appropriate for this type of editor.StyledEditorKit.createDefaultDocument()Creates an uninitialized text storage model that is appropriate for this type of editor.AbstractDocument.AbstractElement.getDocument()Retrieves the underlying model.AbstractDocument.DefaultDocumentEvent.getDocument()Gets the document that sourced the change event.protected DocumentAbstractWriter.getDocument()Fetches the document.abstract DocumentDocumentFilter.FilterBypass.getDocument()Returns the Document the mutation is occurring on.Element.getDocument()Fetches the document associated with this element.JTextComponent.getDocument()Fetches the model associated with the editor.View.getDocument()Fetches the model associated with the view.Methods in javax.swing.text with parameters of type DocumentModifier and TypeMethodDescriptionvoidDefaultEditorKit.read(InputStream in, Document doc, int pos) Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.voidInserts content from the given stream, which will be treated as plain text.abstract voidEditorKit.read(InputStream in, Document doc, int pos) Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.abstract voidInserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.voidJTextComponent.setDocument(Document doc) Associates the editor with a text document.voidDefaultEditorKit.write(OutputStream out, Document doc, int pos, int len) Writes content from a document to the given stream in a format appropriate for this kind of content handler.voidWrites content from a document to the given stream as plain text.abstract voidEditorKit.write(OutputStream out, Document doc, int pos, int len) Writes content from a document to the given stream in a format appropriate for this kind of content handler.abstract voidWrites content from a document to the given stream in a format appropriate for this kind of content handler.Constructors in javax.swing.text with parameters of type DocumentModifierConstructorDescriptionprotectedAbstractWriter(Writer w, Document doc) Creates a new AbstractWriter.protectedAbstractWriter(Writer w, Document doc, int pos, int len) Creates a new AbstractWriter.ElementIterator(Document document) Creates a newElementIterator. -
Uses of Document in javax.swing.text.html
Classes in javax.swing.text.html that implement DocumentMethods in javax.swing.text.html that return DocumentModifier and TypeMethodDescriptionHTMLEditorKit.createDefaultDocument()Create an uninitialized text storage model that is appropriate for this type of editor.Methods in javax.swing.text.html with parameters of type DocumentModifier and TypeMethodDescriptionvoidInserts content from the given stream.voidWrite content from a document to the given stream in a format appropriate for this kind of content handler. -
Uses of Document in javax.swing.text.rtf
Methods in javax.swing.text.rtf with parameters of type DocumentModifier and TypeMethodDescriptionvoidRTFEditorKit.read(InputStream in, Document doc, int pos) Insert content from the given stream which is expected to be in a format appropriate for this kind of content handler.voidInsert content from the given stream, which will be treated as plain text.voidRTFEditorKit.write(OutputStream out, Document doc, int pos, int len) Write content from a document to the given stream in a format appropriate for this kind of content handler.voidWrite content from a document to the given stream as plain text.