All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.text.StyledEditorKit

java.lang.Object
   |
   +----com.sun.java.swing.text.EditorKit
           |
           +----com.sun.java.swing.text.DefaultEditorKit
                   |
                   +----com.sun.java.swing.text.StyledEditorKit

public class StyledEditorKit
extends DefaultEditorKit
This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document. This implementation provides a default implementation which treats text as styled text and provides a minimal set of actions for JTextPane and components that subclass it.


Constructor Index

 o StyledEditorKit()

Method Index

 o createDefaultDocument()
Create an uninitialized text storage model that is appropriate for this type of editor.
 o getActions()
Fetches the command list for the editor.
 o getViewFactory()
Fetch a factory that is suitable for producing views of any models that are produced by this kit.

Constructors

 o StyledEditorKit
 public StyledEditorKit()

Methods

 o getActions
 public Action[] getActions()
Fetches the command list for the editor. This is the list of commands supported by the superclass augmented by the collection of commands defined locally for style operations.

Returns:
the command list
Overrides:
getActions in class DefaultEditorKit
 o createDefaultDocument
 public Document createDefaultDocument()
Create an uninitialized text storage model that is appropriate for this type of editor.

Overrides:
createDefaultDocument in class DefaultEditorKit
 o getViewFactory
 public ViewFactory getViewFactory()
Fetch a factory that is suitable for producing views of any models that are produced by this kit. This is implemented to return View implementations for the following kinds of elements:

Overrides:
getViewFactory in class DefaultEditorKit

All Packages  Class Hierarchy  This Package  Previous  Next  Index