Class OrderEditorKit

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class OrderEditorKit
    extends javax.swing.text.StyledEditorKit
    This object is designed to change the default behaviour of JTextPane. I (Ilja Pavkovic) personally dislike the way <CTRL>-<Right> and <CTRL>-<Left;gt; is handled. Therefore I changed NextWordAction and PreviousWordAction.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OrderEditorKit.CopyLineAction
      DOCUMENT-ME
      static class  OrderEditorKit.NextWordAction
      DOCUMENT-ME
      • Nested classes/interfaces inherited from class javax.swing.text.StyledEditorKit

        javax.swing.text.StyledEditorKit.AlignmentAction, javax.swing.text.StyledEditorKit.BoldAction, javax.swing.text.StyledEditorKit.FontFamilyAction, javax.swing.text.StyledEditorKit.FontSizeAction, javax.swing.text.StyledEditorKit.ForegroundAction, javax.swing.text.StyledEditorKit.ItalicAction, javax.swing.text.StyledEditorKit.StyledTextAction, javax.swing.text.StyledEditorKit.UnderlineAction
      • Nested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit

        javax.swing.text.DefaultEditorKit.BeepAction, javax.swing.text.DefaultEditorKit.CopyAction, javax.swing.text.DefaultEditorKit.CutAction, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, javax.swing.text.DefaultEditorKit.InsertBreakAction, javax.swing.text.DefaultEditorKit.InsertContentAction, javax.swing.text.DefaultEditorKit.InsertTabAction, javax.swing.text.DefaultEditorKit.PasteAction
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String copyLineAction
      DOCUMENT-ME
      static java.lang.String copyLineActionKeyStroke
      DOCUMENT-ME
      • Fields inherited from class javax.swing.text.DefaultEditorKit

        backwardAction, 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 Summary

      Constructors 
      Constructor Description
      OrderEditorKit()
      Creates a new OrderEditorKit object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Action[] getActions()
      Fetches the order list for the editor.
      • Methods inherited from class javax.swing.text.StyledEditorKit

        clone, createDefaultDocument, createInputAttributes, deinstall, getCharacterAttributeRun, getInputAttributes, getViewFactory, install
      • Methods inherited from class javax.swing.text.DefaultEditorKit

        createCaret, getContentType, read, read, write, write
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • copyLineActionKeyStroke

        public static final java.lang.String copyLineActionKeyStroke
        DOCUMENT-ME
        See Also:
        Constant Field Values
      • copyLineAction

        public static final java.lang.String copyLineAction
        DOCUMENT-ME
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderEditorKit

        public OrderEditorKit()
        Creates a new OrderEditorKit object.
    • Method Detail

      • getActions

        public javax.swing.Action[] getActions()
        Fetches the order list for the editor. This is the list of orders supported by the superclass augmented by the collection of orders defined locally for style operations.
        Overrides:
        getActions in class javax.swing.text.StyledEditorKit
        Returns:
        the order list