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.
-
StyledEditorKit()
-
-
createDefaultDocument()
- Create an uninitialized text storage model
that is appropriate for this type of editor.
-
getActions()
- Fetches the command list for the editor.
-
getViewFactory()
- Fetch a factory that is suitable for producing
views of any models that are produced by this
kit.
StyledEditorKit
public StyledEditorKit()
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
createDefaultDocument
public Document createDefaultDocument()
- Create an uninitialized text storage model
that is appropriate for this type of editor.
- Overrides:
- createDefaultDocument in class DefaultEditorKit
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:
- AbstractDocument.ContentElementName
- AbstractDocument.ParagraphElementName
- AbstractDocument.SectionElementName
- StyleConstants.ComponentElementName
- StyleConstants.IconElementName
- Overrides:
- getViewFactory in class DefaultEditorKit
All Packages Class Hierarchy This Package Previous Next Index