public class StyledEditorKit extends DefaultEditorKit
| Modifier and Type | Class and Description | 
|---|---|
| static class  | StyledEditorKit.AlignmentActionAn action to set paragraph alignment. | 
| static class  | StyledEditorKit.BoldActionAn action to toggle the bold attribute. | 
| static class  | StyledEditorKit.FontFamilyActionAn action to set the font family in the associated
 JEditorPane. | 
| static class  | StyledEditorKit.FontSizeActionAn action to set the font size in the associated
 JEditorPane. | 
| static class  | StyledEditorKit.ForegroundActionAn action to set foreground color. | 
| static class  | StyledEditorKit.ItalicActionAn action to toggle the italic attribute. | 
| static class  | StyledEditorKit.StyledTextActionAn action that assumes it's being fired on a JEditorPane
 with a StyledEditorKit (or subclass) installed. | 
| static class  | StyledEditorKit.UnderlineActionAn action to toggle the underline attribute. | 
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteActionbackwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction| Constructor and Description | 
|---|
| StyledEditorKit()Creates a new EditorKit used for styled documents. | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | clone()Creates a copy of the editor kit. | 
| Document | createDefaultDocument()Creates an uninitialized text storage model
 that is appropriate for this type of editor. | 
| protected void | createInputAttributes(Element element,
                     MutableAttributeSet set)Copies the key/values in  elements AttributeSet intoset. | 
| void | deinstall(JEditorPane c)Called when the kit is being removed from the
 JEditorPane. | 
| Action[] | getActions()Fetches the command list for the editor. | 
| Element | getCharacterAttributeRun()Fetches the element representing the current
 run of character attributes for the caret. | 
| MutableAttributeSet | getInputAttributes()Gets the input attributes for the pane. | 
| ViewFactory | getViewFactory()Fetches a factory that is suitable for producing
 views of any models that are produced by this
 kit. | 
| void | install(JEditorPane c)Called when the kit is being installed into
 a JEditorPane. | 
createCaret, getContentType, read, read, write, writepublic StyledEditorKit()
public MutableAttributeSet getInputAttributes()
public Element getCharacterAttributeRun()
public Action[] getActions()
getActions in class DefaultEditorKitpublic Document createDefaultDocument()
createDefaultDocument in class DefaultEditorKitpublic void install(JEditorPane c)
public void deinstall(JEditorPane c)
public ViewFactory getViewFactory()
getViewFactory in class DefaultEditorKitpublic Object clone()
protected void createInputAttributes(Element element, MutableAttributeSet set)
elements AttributeSet into
 set. This does not copy component, icon, or element
 names attributes. Subclasses may wish to refine what is and what
 isn't copied here. But be sure to first remove all the attributes that
 are in set.This is called anytime the caret moves over a different location.
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates.  All rights reserved.