Java Platform 1.2
Beta 4

Uses of Interface
com.sun.java.swing.text.Document

Packages that use Document
com.sun.java.swing Provides a set of "lightweight" (all-Java
com.sun.java.swing.event Provides for events fired by Swing components.  
com.sun.java.swing.text Provides classes and interfaces that deal with editable and noneditable text components.  
com.sun.java.swing.text.html Provides the class (HTMLEditorKit) and supporting classes for creating HTML text editors.  
com.sun.java.swing.text.rtf Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors.  
 

Uses of Document in com.sun.java.swing
 

Methods in com.sun.java.swing that return Document
protected  Document JTextField.createDefaultModel()
          Creates the default implementation of the model to be used at construction if one isn't explicitly given.
protected  Document JTextArea.createDefaultModel()
          Creates the default implementation of the model to be used at construction if one isn't explicitly given.
 

Methods in com.sun.java.swing with parameters of type Document
 void JTextPane.setDocument(Document doc)
          Associates the editor with a text document.
 

Constructors in com.sun.java.swing with parameters of type Document
JTextField.JTextField(Document doc, String text, int columns)
          Constructs a new JTextField that uses the given text storage model and the given number of columns.
JPasswordField.JPasswordField(Document doc, String txt, int columns)
          Constructs a new JPasswordField that uses the given text storage model and the given number of columns.
JTextArea.JTextArea(Document doc)
          Constructs a new JTextArea with the given document model, and defaults for all of the other arguments (null, 0, 0).
JTextArea.JTextArea(Document doc, String text, int rows, int columns)
          Constructs a new JTextArea with the specified number of rows and columns, and the given model.
 

Uses of Document in com.sun.java.swing.event
 

Methods in com.sun.java.swing.event that return Document
 Document DocumentEvent.getDocument()
          Gets the document that sourced the change event.
 

Uses of Document in com.sun.java.swing.text
 

Subinterfaces of Document in com.sun.java.swing.text
  StyledDocument
          Interface for a generic styled document.
 

Classes in com.sun.java.swing.text that implement Document
  AbstractDocument
          An implementation of the document interface to serve as a basis for implementing various kinds of documents.
  DefaultStyledDocument
          A document that can be marked up with character and paragraph styles in a manner similar to the Rich Text Format.
  PlainDocument
          A plain document that uses one font and color.
 

Methods in com.sun.java.swing.text that return Document
 Document JTextComponent.getDocument()
          Fetches the model associated with the editor.
 Document View.getDocument()
          Fetches the model associated with the view.
 Document Element.getDocument()
          Fetches the document associated with this element.
 Document AbstractDocument.AbstractElement.getDocument()
          Retrieves the underlying model.
abstract  Document EditorKit.createDefaultDocument()
          Creates an uninitialized text storage model that is appropriate for this type of editor.
 Document DefaultEditorKit.createDefaultDocument()
          Creates an uninitialized text storage model (PlainDocument) that is appropriate for this type of editor.
protected  Document AbstractWriter.getDocument()
          Fetches the document.
 Document StyledEditorKit.createDefaultDocument()
          Creates an uninitialized text storage model that is appropriate for this type of editor.
 Document AbstractDocument.DefaultDocumentEvent.getDocument()
          Gets the document that sourced the change event.
 

Methods in com.sun.java.swing.text with parameters of type Document
 void JTextComponent.setDocument(Document doc)
          Associates the editor with a text document.
abstract  void EditorKit.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  void EditorKit.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  void EditorKit.read(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(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.
 void DefaultEditorKit.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.
 void DefaultEditorKit.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.
 void DefaultEditorKit.read(Reader in, Document doc, int pos)
          Inserts content from the given stream, which will be treated as plain text.
 void DefaultEditorKit.write(Writer out, Document doc, int pos, int len)
          Writes content from a document to the given stream as plain text.
 

Constructors in com.sun.java.swing.text with parameters of type Document
AbstractWriter.AbstractWriter(Writer w, Document doc)
          Creates a new AbstractWriter.
ElementIterator.ElementIterator(Document document)
          Creates a new ElementIterator.
 

Uses of Document in com.sun.java.swing.text.html
 

Classes in com.sun.java.swing.text.html that implement Document
  HTMLDocument
          A document that models html.
 

Methods in com.sun.java.swing.text.html that return Document
 Document HTMLEditorKit.createDefaultDocument()
          Create an uninitialized text storage model that is appropriate for this type of editor.
 

Methods in com.sun.java.swing.text.html with parameters of type Document
 void HTMLEditorKit.read(Reader in, Document doc, int pos)
          Create and initialize a model from the given stream which is expected to be in a format appropriate for this kind of editor.
 void HTMLEditorKit.write(Writer 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.
 

Uses of Document in com.sun.java.swing.text.rtf
 

Methods in com.sun.java.swing.text.rtf with parameters of type Document
 void RTFEditorKit.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.
 void RTFEditorKit.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.
 void RTFEditorKit.read(Reader in, Document doc, int pos)
          Insert content from the given stream, which will be treated as plain text.
 void RTFEditorKit.write(Writer out, Document doc, int pos, int len)
          Write content from a document to the given stream as plain text.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.