JSR-209 (Final Release)

Uses of Interface
javax.swing.text.Document

Packages that use Document
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.event Provides for events fired by Swing components. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
 

Uses of Document in javax.swing
 

Methods in javax.swing that return Document
protected  Document JTextArea.createDefaultModel()
          Creates the default implementation of the model to be used at construction if one isn't explicitly given.
protected  Document JTextField.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 Document
 void JTextPane.setDocument(Document doc)
          Associates the editor with a text document.
 void JFormattedTextField.setDocument(Document doc)
          Associates the editor with a text document.
 void JTextField.setDocument(Document doc)
          Associates the editor with a text document.
 

Constructors in javax.swing with parameters of type Document
JTextArea(Document doc)
          Constructs a new JTextArea with the given document model, and defaults for all of the other arguments (null, 0, 0).
JTextArea(Document doc, java.lang.String text, int rows, int columns)
          Constructs a new JTextArea with the specified number of rows and columns, and the given model.
JPasswordField(Document doc, java.lang.String txt, int columns)
          Constructs a new JPasswordField that uses the given text storage model and the given number of columns.
JTextField(Document doc, java.lang.String text, int columns)
          Constructs a new JTextField that 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 Document
 Document DocumentEvent.getDocument()
          Gets the document that sourced the change event.
 

Uses of Document in javax.swing.text
 

Subinterfaces of Document in javax.swing.text
 interface StyledDocument
          Interface for a generic styled document.
 

Classes in javax.swing.text that implement Document
 class AbstractDocument
          An implementation of the document interface to serve as a basis for implementing various kinds of documents.
 

Methods in javax.swing.text that return Document
 Document JTextComponent.getDocument()
          Fetches the model associated with the editor.
abstract  Document EditorKit.createDefaultDocument()
          Creates an uninitialized text storage model that is appropriate for this type of editor.
 Document Element.getDocument()
          Fetches the document associated with this element.
abstract  Document DocumentFilter.FilterBypass.getDocument()
          Returns the Document the mutation is occuring on.
 Document AbstractDocument.AbstractElement.getDocument()
          Retrieves the underlying model.
 Document AbstractDocument.DefaultDocumentEvent.getDocument()
          Gets the document that sourced the change event.
 Document View.getDocument()
          Fetches the model associated with the view.
 

Methods in javax.swing.text with parameters of type Document
 void JTextComponent.setDocument(Document doc)
          Associates the editor with a text document.
abstract  void EditorKit.read(java.io.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  void EditorKit.write(java.io.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  void EditorKit.read(java.io.Reader 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  void EditorKit.write(java.io.Writer 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.
 


JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.