API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. StyledEditorKit View Source
Author(s)
Timothy Prinzing
Since
Version
1.46 11/17/05
Serial
Hierarchy
 Object
      EditorKit
          DefaultEditorKit
              StyledEditorKit
Implements
Subclasses
Description
public class StyledEditorKit
  This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.
See also:   
Constructors
public StyledEditorKit ()
Creates a new EditorKit used for styled documents.
Methods
Hide/Show inherited methods
public Object clone () [Overrides EditorKit]
  Creates a copy of the editor kit.
public Caret createCaret () [Inherited From DefaultEditorKit] [Specified in EditorKit]
  Fetches a caret that can navigate through views produced by the associated ViewFactory.
public Document createDefaultDocument () [Overrides DefaultEditorKit] [Specified in EditorKit]
  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 into set.
public void deinstall (JEditorPane c) [Overrides EditorKit]
  Called when the kit is being removed from the JEditorPane.
public Action getActions () [Overrides DefaultEditorKit] [Specified in EditorKit]
  Fetches the command list for the editor.
public Element getCharacterAttributeRun ()
  Fetches the element representing the current run of character attributes for the caret.
public String getContentType () [Inherited From DefaultEditorKit] [Specified in EditorKit]
  Gets the MIME type of the data that this kit represents support for.
public MutableAttributeSet getInputAttributes () [Overrides DefaultEditorKit]
  Gets the input attributes for the pane.
public ViewFactory getViewFactory () [Overrides DefaultEditorKit] [Specified in EditorKit]
  Fetches a factory that is suitable for producing views of any models that are produced by this kit.
public void install (JEditorPane c) [Overrides EditorKit]
  Called when the kit is being installed into a JEditorPane.
public void read (InputStream in, Document doc, int pos) throws IOException BadLocationException [Inherited From DefaultEditorKit] [Specified in EditorKit]
  Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
public void read (Reader in, Document doc, int pos) throws IOException BadLocationException [Inherited From DefaultEditorKit] [Specified in EditorKit]
  Inserts content from the given stream, which will be treated as plain text.
public void write (OutputStream out, Document doc, int pos, int len) throws IOException BadLocationException [Inherited From DefaultEditorKit] [Specified in EditorKit]
  Writes content from a document to the given stream in a format appropriate for this kind of content handler.
public void write (Writer out, Document doc, int pos, int len) throws IOException BadLocationException [Inherited From DefaultEditorKit] [Specified in EditorKit]
  Writes content from a document to the given stream as plain text.
Fields
Hide/Show inherited fields
publicfinalstatic String backwardAction = "caret-backward" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret logically backward one position.
publicfinalstatic String beepAction = "beep" [Inherited From DefaultEditorKit]
  Name of the action to create a beep.
publicfinalstatic String beginAction = "caret-begin" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of the document.
publicfinalstatic String beginLineAction = "caret-begin-line" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of a line.
publicfinalstatic String beginParagraphAction = "caret-begin-paragraph" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of a paragraph.
publicfinalstatic String beginWordAction = "caret-begin-word" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of a word.
publicfinalstatic String copyAction = "copy-to-clipboard" [Inherited From DefaultEditorKit]
  Name of the action to copy the selected region and place the contents into the system clipboard.
pack-private Element currentParagraph
pack-private Element currentRun
publicfinalstatic String cutAction = "cut-to-clipboard" [Inherited From DefaultEditorKit]
  Name of the action to cut the selected region and place the contents into the system clipboard.
publicfinalstatic String defaultKeyTypedAction = "default-typed" [Inherited From DefaultEditorKit]
  Name of the action that is executed by default if a key typed event is received and there is no keymap entry.
publicfinalstatic String deleteNextCharAction = "delete-next" [Inherited From DefaultEditorKit]
  Name of the action to delete the character of content that follows the current caret position.
publicfinalstatic String deleteNextWordAction = "delete-next-word" [Inherited From DefaultEditorKit]
  Name of the action to delete the word that follows the beginning of the selection.
publicfinalstatic String deletePrevCharAction = "delete-previous" [Inherited From DefaultEditorKit]
  Name of the action to delete the character of content that precedes the current caret position.
publicfinalstatic String deletePrevWordAction = "delete-previous-word" [Inherited From DefaultEditorKit]
  Name of the action to delete the word that precedes the beginning of the selection.
publicfinalstatic String downAction = "caret-down" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret logically downward one position.
publicfinalstatic String endAction = "caret-end" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the end of the document.
publicfinalstatic String endLineAction = "caret-end-line" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the end of a line.
publicfinalstatic String EndOfLineStringProperty = "__EndOfLine__" [Inherited From DefaultEditorKit]
When reading a document if a CRLF is encountered a property with this name is added and the value will be "\r\n".
publicfinalstatic String endParagraphAction = "caret-end-paragraph" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the end of a paragraph.
publicfinalstatic String endWordAction = "caret-end-word" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the end of a word.
publicfinalstatic String forwardAction = "caret-forward" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret logically forward one position.
pack-private MutableAttributeSet inputAttributes
This is the set of attributes used to store the input attributes.
publicfinalstatic String insertBreakAction = "insert-break" [Inherited From DefaultEditorKit]
  Name of the action to place a line/paragraph break into the document.
publicfinalstatic String insertContentAction = "insert-content" [Inherited From DefaultEditorKit]
  Name of the action to place content into the associated document.
publicfinalstatic String insertTabAction = "insert-tab" [Inherited From DefaultEditorKit]
  Name of the action to place a tab character into the document.
publicfinalstatic String nextWordAction = "caret-next-word" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of the next word.
publicfinalstatic String pageDownAction = "page-down" [Inherited From DefaultEditorKit]
  Name of the action to page down vertically.
publicfinalstatic String pageUpAction = "page-up" [Inherited From DefaultEditorKit]
  Name of the action to page up vertically.
publicfinalstatic String pasteAction = "paste-from-clipboard" [Inherited From DefaultEditorKit]
  Name of the action to paste the contents of the system clipboard into the selected region, or before the caret if nothing is selected.
publicfinalstatic String previousWordAction = "caret-previous-word" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of the previous word.
publicfinalstatic String readOnlyAction = "set-read-only" [Inherited From DefaultEditorKit]
  Name of the action to set the editor into read-only mode.
publicfinalstatic String selectAllAction = "select-all" [Inherited From DefaultEditorKit]
  Name of the Action for selecting the entire document
publicfinalstatic String selectionBackwardAction = "selection-backward" [Inherited From DefaultEditorKit]
  Name of the Action for extending the selection by moving the caret logically backward one position.
publicfinalstatic String selectionBeginAction = "selection-begin" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of the document.
publicfinalstatic String selectionBeginLineAction = "selection-begin-line" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of a line, extending the selection.
publicfinalstatic String selectionBeginParagraphAction = "selection-begin-paragraph" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of a paragraph, extending the selection.
publicfinalstatic String selectionBeginWordAction = "selection-begin-word" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the beginning of a word, extending the selection.
publicfinalstatic String selectionDownAction = "selection-down" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret logically downward one position, extending the selection.
publicfinalstatic String selectionEndAction = "selection-end" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the end of the document.
publicfinalstatic String selectionEndLineAction = "selection-end-line" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the end of a line, extending the selection.
publicfinalstatic String selectionEndParagraphAction = "selection-end-paragraph" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the end of a paragraph, extending the selection.
publicfinalstatic String selectionEndWordAction = "selection-end-word" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret to the end of a word, extending the selection.
publicfinalstatic String selectionForwardAction = "selection-forward" [Inherited From DefaultEditorKit]
  Name of the Action for extending the selection by moving the caret logically forward one position.
publicfinalstatic String selectionNextWordAction = "selection-next-word" [Inherited From DefaultEditorKit]
  Name of the Action for moving the selection to the beginning of the next word, extending the selection.
pack-privatefinalstatic String selectionPageDownAction = "selection-page-down" [Inherited From DefaultEditorKit]
  Name of the action to page down vertically, and move the selection.
pack-privatefinalstatic String selectionPageLeftAction = "selection-page-left" [Inherited From DefaultEditorKit]
  Name of the action to page left horizontally, and move the selection.
pack-privatefinalstatic String selectionPageRightAction = "selection-page-right" [Inherited From DefaultEditorKit]
  Name of the action to page right horizontally, and move the selection.
pack-privatefinalstatic String selectionPageUpAction = "selection-page-up" [Inherited From DefaultEditorKit]
  Name of the action to page up vertically, and move the selection.
publicfinalstatic String selectionPreviousWordAction = "selection-previous-word" [Inherited From DefaultEditorKit]
  Name of the Action for moving the selection to the beginning of the previous word, extending the selection.
publicfinalstatic String selectionUpAction = "selection-up" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret logically upward one position, extending the selection.
publicfinalstatic String selectLineAction = "select-line" [Inherited From DefaultEditorKit]
  Name of the Action for selecting a line around the caret.
publicfinalstatic String selectParagraphAction = "select-paragraph" [Inherited From DefaultEditorKit]
  Name of the Action for selecting a paragraph around the caret.
publicfinalstatic String selectWordAction = "select-word" [Inherited From DefaultEditorKit]
  Name of the Action for selecting a word around the caret.
pack-privatefinalstatic String toggleComponentOrientationAction = "toggle-componentOrientation" [Inherited From DefaultEditorKit]
  Name of the Action for toggling the component's orientation.
pack-privatefinalstatic String unselectAction = "unselect" [Inherited From DefaultEditorKit]
  Name of the Action for removing selection
publicfinalstatic String upAction = "caret-up" [Inherited From DefaultEditorKit]
  Name of the Action for moving the caret logically upward one position.
publicfinalstatic String writableAction = "set-writable" [Inherited From DefaultEditorKit]
  Name of the action to set the editor into writeable mode.
Nested Classes
  StyledEditorKit.AttributeTracker
Tracks caret movement and keeps the input attributes set to reflect the current set of attribute definitions at the caret position.
  StyledEditorKit.StyledViewFactory
  StyledEditorKit.StyledTextAction
An action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.
  StyledEditorKit.FontFamilyAction
An action to set the font family in the associated JEditorPane.
  StyledEditorKit.FontSizeAction
An action to set the font size in the associated JEditorPane.
  StyledEditorKit.ForegroundAction
An action to set foreground color.
  StyledEditorKit.AlignmentAction
An action to set paragraph alignment.
  StyledEditorKit.BoldAction
An action to toggle the bold attribute.
  StyledEditorKit.ItalicAction
An action to toggle the italic attribute.
  StyledEditorKit.UnderlineAction
An action to toggle the underline attribute.
  StyledEditorKit.StyledInsertBreakAction
StyledInsertBreakAction has similar behavior to that of DefaultEditorKit.InsertBreakAction.
  DefaultEditorKit.DefaultKeyTypedAction
The action that is executed by default if a key typed event is received and there is no keymap entry.
  DefaultEditorKit.InsertContentAction
Places content into the associated document.
  DefaultEditorKit.InsertBreakAction
Places a line/paragraph break into the document.
  DefaultEditorKit.InsertTabAction
Places a tab character into the document.
  DefaultEditorKit.DeletePrevCharAction
  DefaultEditorKit.DeleteNextCharAction
  DefaultEditorKit.DeleteWordAction
  DefaultEditorKit.ReadOnlyAction
  DefaultEditorKit.WritableAction
  DefaultEditorKit.CutAction
Cuts the selected region and place its contents into the system clipboard.
  DefaultEditorKit.CopyAction
Copies the selected region and place its contents into the system clipboard.
  DefaultEditorKit.PasteAction
Pastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected.
  DefaultEditorKit.BeepAction
Creates a beep.
  DefaultEditorKit.VerticalPageAction
Scrolls up/down vertically.
  DefaultEditorKit.PageAction
Pages one view to the left or right.
  DefaultEditorKit.DumpModelAction
  DefaultEditorKit.NextVisualPositionAction
  DefaultEditorKit.BeginWordAction
  DefaultEditorKit.EndWordAction
  DefaultEditorKit.PreviousWordAction
  DefaultEditorKit.NextWordAction
  DefaultEditorKit.BeginLineAction
  DefaultEditorKit.EndLineAction
  DefaultEditorKit.BeginParagraphAction
  DefaultEditorKit.EndParagraphAction
  DefaultEditorKit.BeginAction
  DefaultEditorKit.EndAction
  DefaultEditorKit.SelectWordAction
  DefaultEditorKit.SelectLineAction
  DefaultEditorKit.SelectParagraphAction
  DefaultEditorKit.SelectAllAction
  DefaultEditorKit.UnselectAction
  DefaultEditorKit.ToggleComponentOrientationAction
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar