API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. DefaultEditorKit View Source
Author(s)
Timothy Prinzing
Since
Version
1.72 08/17/06
Serial
Hierarchy
 Object
      EditorKit
          DefaultEditorKit
Implements
Subclasses
Description
public class DefaultEditorKit
  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 DefaultEditorKit ()
default constructor for DefaultEditorKit
Methods
Hide/Show inherited methods
public Object clone () [Inherited From EditorKit]
  Creates a copy of the editor kit.
public Caret createCaret () [Specified in EditorKit]
  Fetches a caret that can navigate through views produced by the associated ViewFactory.
public Document createDefaultDocument () [Specified in EditorKit]
  Creates an uninitialized text storage model (PlainDocument) that is appropriate for this type of editor.
public void deinstall (JEditorPane c) [Inherited From EditorKit]
  Called when the kit is being removed from the JEditorPane.
public Action getActions () [Specified in EditorKit]
  Fetches the set of commands that can be used on a text component that is using a model and view produced by this kit.
public String getContentType () [Specified in EditorKit]
  Gets the MIME type of the data that this kit represents support for.
pack-private MutableAttributeSet getInputAttributes ()
  Gets the input attributes for the pane.
public ViewFactory getViewFactory () [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) [Inherited From EditorKit]
  Called when the kit is being installed into the a JEditorPane.
public void read (InputStream in, Document doc, int pos) throws IOException BadLocationException [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 [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 [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 [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"
  Name of the Action for moving the caret logically backward one position.
publicfinalstatic String beepAction = "beep"
  Name of the action to create a beep.
publicfinalstatic String beginAction = "caret-begin"
  Name of the Action for moving the caret to the beginning of the document.
publicfinalstatic String beginLineAction = "caret-begin-line"
  Name of the Action for moving the caret to the beginning of a line.
publicfinalstatic String beginParagraphAction = "caret-begin-paragraph"
  Name of the Action for moving the caret to the beginning of a paragraph.
publicfinalstatic String beginWordAction = "caret-begin-word"
  Name of the Action for moving the caret to the beginning of a word.
publicfinalstatic String copyAction = "copy-to-clipboard"
  Name of the action to copy the selected region and place the contents into the system clipboard.
publicfinalstatic String cutAction = "cut-to-clipboard"
  Name of the action to cut the selected region and place the contents into the system clipboard.
publicfinalstatic String defaultKeyTypedAction = "default-typed"
  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"
  Name of the action to delete the character of content that follows the current caret position.
publicfinalstatic String deleteNextWordAction = "delete-next-word"
  Name of the action to delete the word that follows the beginning of the selection.
publicfinalstatic String deletePrevCharAction = "delete-previous"
  Name of the action to delete the character of content that precedes the current caret position.
publicfinalstatic String deletePrevWordAction = "delete-previous-word"
  Name of the action to delete the word that precedes the beginning of the selection.
publicfinalstatic String downAction = "caret-down"
  Name of the Action for moving the caret logically downward one position.
publicfinalstatic String endAction = "caret-end"
  Name of the Action for moving the caret to the end of the document.
publicfinalstatic String endLineAction = "caret-end-line"
  Name of the Action for moving the caret to the end of a line.
publicfinalstatic String EndOfLineStringProperty = "__EndOfLine__"
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"
  Name of the Action for moving the caret to the end of a paragraph.
publicfinalstatic String endWordAction = "caret-end-word"
  Name of the Action for moving the caret to the end of a word.
publicfinalstatic String forwardAction = "caret-forward"
  Name of the Action for moving the caret logically forward one position.
publicfinalstatic String insertBreakAction = "insert-break"
  Name of the action to place a line/paragraph break into the document.
publicfinalstatic String insertContentAction = "insert-content"
  Name of the action to place content into the associated document.
publicfinalstatic String insertTabAction = "insert-tab"
  Name of the action to place a tab character into the document.
publicfinalstatic String nextWordAction = "caret-next-word"
  Name of the Action for moving the caret to the beginning of the next word.
publicfinalstatic String pageDownAction = "page-down"
  Name of the action to page down vertically.
publicfinalstatic String pageUpAction = "page-up"
  Name of the action to page up vertically.
publicfinalstatic String pasteAction = "paste-from-clipboard"
  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"
  Name of the Action for moving the caret to the beginning of the previous word.
publicfinalstatic String readOnlyAction = "set-read-only"
  Name of the action to set the editor into read-only mode.
publicfinalstatic String selectAllAction = "select-all"
  Name of the Action for selecting the entire document
publicfinalstatic String selectionBackwardAction = "selection-backward"
  Name of the Action for extending the selection by moving the caret logically backward one position.
publicfinalstatic String selectionBeginAction = "selection-begin"
  Name of the Action for moving the caret to the beginning of the document.
publicfinalstatic String selectionBeginLineAction = "selection-begin-line"
  Name of the Action for moving the caret to the beginning of a line, extending the selection.
publicfinalstatic String selectionBeginParagraphAction = "selection-begin-paragraph"
  Name of the Action for moving the caret to the beginning of a paragraph, extending the selection.
publicfinalstatic String selectionBeginWordAction = "selection-begin-word"
  Name of the Action for moving the caret to the beginning of a word, extending the selection.
publicfinalstatic String selectionDownAction = "selection-down"
  Name of the Action for moving the caret logically downward one position, extending the selection.
publicfinalstatic String selectionEndAction = "selection-end"
  Name of the Action for moving the caret to the end of the document.
publicfinalstatic String selectionEndLineAction = "selection-end-line"
  Name of the Action for moving the caret to the end of a line, extending the selection.
publicfinalstatic String selectionEndParagraphAction = "selection-end-paragraph"
  Name of the Action for moving the caret to the end of a paragraph, extending the selection.
publicfinalstatic String selectionEndWordAction = "selection-end-word"
  Name of the Action for moving the caret to the end of a word, extending the selection.
publicfinalstatic String selectionForwardAction = "selection-forward"
  Name of the Action for extending the selection by moving the caret logically forward one position.
publicfinalstatic String selectionNextWordAction = "selection-next-word"
  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"
  Name of the action to page down vertically, and move the selection.
pack-privatefinalstatic String selectionPageLeftAction = "selection-page-left"
  Name of the action to page left horizontally, and move the selection.
pack-privatefinalstatic String selectionPageRightAction = "selection-page-right"
  Name of the action to page right horizontally, and move the selection.
pack-privatefinalstatic String selectionPageUpAction = "selection-page-up"
  Name of the action to page up vertically, and move the selection.
publicfinalstatic String selectionPreviousWordAction = "selection-previous-word"
  Name of the Action for moving the selection to the beginning of the previous word, extending the selection.
publicfinalstatic String selectionUpAction = "selection-up"
  Name of the Action for moving the caret logically upward one position, extending the selection.
publicfinalstatic String selectLineAction = "select-line"
  Name of the Action for selecting a line around the caret.
publicfinalstatic String selectParagraphAction = "select-paragraph"
  Name of the Action for selecting a paragraph around the caret.
publicfinalstatic String selectWordAction = "select-word"
  Name of the Action for selecting a word around the caret.
pack-privatefinalstatic String toggleComponentOrientationAction = "toggle-componentOrientation"
  Name of the Action for toggling the component's orientation.
pack-privatefinalstatic String unselectAction = "unselect"
  Name of the Action for removing selection
publicfinalstatic String upAction = "caret-up"
  Name of the Action for moving the caret logically upward one position.
publicfinalstatic String writableAction = "set-writable"
  Name of the action to set the editor into writeable mode.
Nested Classes
  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