API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. EditorKit View Source
Author(s)
Timothy Prinzing
Since
Version
1.20 11/17/05
Serial
Hierarchy
 Object
      EditorKit
Implements
 Cloneable
 Serializable
Subclasses
Description
publicabstract abstract class EditorKit
  Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.
See also:   
Constructors
public EditorKit ()
Construct an EditorKit.
Methods
Hide/Show inherited methods
public Object clone ()
  Creates a copy of the editor kit.
publicabstract Caret createCaret ()
  Fetches a caret that can navigate through views produced by the associated ViewFactory.
publicabstract Document createDefaultDocument ()
  Creates an uninitialized text storage model that is appropriate for this type of editor.
public void deinstall (JEditorPane c)
  Called when the kit is being removed from the JEditorPane.
publicabstract Action getActions ()
  Fetches the set of commands that can be used on a text component that is using a model and view produced by this kit.
publicabstract String getContentType ()
  Gets the MIME type of the data that this kit represents support for.
publicabstract ViewFactory getViewFactory ()
  Fetches a factory that is suitable for producing views of any models that are produced by this kit.
public void install (JEditorPane c)
  Called when the kit is being installed into the a JEditorPane.
publicabstract void read (InputStream in, Document doc, int pos) throws IOException BadLocationException
  Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
publicabstract void read (Reader in, Document doc, int pos) throws IOException BadLocationException
  Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
publicabstract void write (OutputStream out, Document doc, int pos, int len) throws IOException BadLocationException
  Writes content from a document to the given stream in a format appropriate for this kind of content handler.
publicabstract void write (Writer out, Document doc, int pos, int len) throws IOException BadLocationException
  Writes content from a document to the given stream in a format appropriate for this kind of content handler.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar