The Meta-Environment API

nl.cwi.sen1.gui.plugin.editor
Class EditorKit

java.lang.Object
  extended by javax.swing.text.EditorKit
      extended by javax.swing.text.DefaultEditorKit
          extended by javax.swing.text.StyledEditorKit
              extended by nl.cwi.sen1.gui.plugin.editor.EditorKit
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
NumberedEditorKit

public class EditorKit
extends javax.swing.text.StyledEditorKit

See Also:
Serialized Form

Nested Class Summary
 class EditorKit.DeleteLineAction
           
 class EditorKit.DeleteNextWordAction
           
 class EditorKit.DeletePreviousWordAction
           
static class EditorKit.EditorTextAction
           
 class EditorKit.FindAction
           
 class EditorKit.GotoLineAction
           
 class EditorKit.GotoMatchingBracketAction
           
 class EditorKit.RedoAction
           
 class EditorKit.SelectFocusAction
           
 class EditorKit.UndoAction
           
 
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
private  javax.swing.undo.CompoundEdit compoundEdit
           
private  EditorKit.DeleteLineAction deleteLine
           
static java.lang.String deleteLineAction
           
private  EditorKit.DeleteNextWordAction deleteNextWord
           
static java.lang.String deleteNextWordAction
           
private  EditorKit.DeletePreviousWordAction deletePreviousWord
           
static java.lang.String deletePreviousWordAction
           
private  EditorKit.FindAction find
           
static java.lang.String findAction
           
private  EditorKit.GotoLineAction gotoLine
           
static java.lang.String gotoLineAction
           
private  EditorKit.GotoMatchingBracketAction gotoMatchingBracket
           
static java.lang.String gotoMatchingBracketAction
           
private  EditorKit.RedoAction redo
           
static java.lang.String redoAction
           
private  EditorKit.SelectFocusAction selectFocus
           
static java.lang.String selectFocusAction
           
private  EditorKit.UndoAction undo
           
private  int UNDO_LIMIT
           
private  boolean undoableSequence
           
static java.lang.String undoAction
           
private  javax.swing.event.UndoableEditListener undoListener
           
private  javax.swing.undo.UndoManager undoManager
           
 
Fields inherited from class javax.swing.text.DefaultEditorKit
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, 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
EditorKit()
           
 
Method Summary
private  void createActions()
           
protected  void endUndoableSequence()
           
 javax.swing.Action getAction(java.lang.String name)
           
 javax.swing.Action[] getActions()
           
 javax.swing.event.UndoableEditListener getUndoListener()
           
 javax.swing.undo.UndoManager getUndoManager()
           
protected  void startUndoableSequence()
           
 
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

UNDO_LIMIT

private final int UNDO_LIMIT
See Also:
Constant Field Values

undoManager

private javax.swing.undo.UndoManager undoManager

undo

private EditorKit.UndoAction undo

redo

private EditorKit.RedoAction redo

deleteLine

private EditorKit.DeleteLineAction deleteLine

find

private EditorKit.FindAction find

gotoLine

private EditorKit.GotoLineAction gotoLine

gotoMatchingBracket

private EditorKit.GotoMatchingBracketAction gotoMatchingBracket

selectFocus

private EditorKit.SelectFocusAction selectFocus

deletePreviousWord

private EditorKit.DeletePreviousWordAction deletePreviousWord

deleteNextWord

private EditorKit.DeleteNextWordAction deleteNextWord

undoAction

public static final java.lang.String undoAction
See Also:
Constant Field Values

redoAction

public static final java.lang.String redoAction
See Also:
Constant Field Values

findAction

public static final java.lang.String findAction
See Also:
Constant Field Values

gotoLineAction

public static final java.lang.String gotoLineAction
See Also:
Constant Field Values

deleteLineAction

public static final java.lang.String deleteLineAction
See Also:
Constant Field Values

gotoMatchingBracketAction

public static final java.lang.String gotoMatchingBracketAction
See Also:
Constant Field Values

selectFocusAction

public static final java.lang.String selectFocusAction
See Also:
Constant Field Values

deletePreviousWordAction

public static final java.lang.String deletePreviousWordAction
See Also:
Constant Field Values

deleteNextWordAction

public static final java.lang.String deleteNextWordAction
See Also:
Constant Field Values

undoListener

private javax.swing.event.UndoableEditListener undoListener

compoundEdit

private javax.swing.undo.CompoundEdit compoundEdit

undoableSequence

private boolean undoableSequence
Constructor Detail

EditorKit

public EditorKit()
Method Detail

getUndoManager

public javax.swing.undo.UndoManager getUndoManager()

getUndoListener

public javax.swing.event.UndoableEditListener getUndoListener()

startUndoableSequence

protected void startUndoableSequence()

endUndoableSequence

protected void endUndoableSequence()

createActions

private void createActions()

getActions

public javax.swing.Action[] getActions()
Overrides:
getActions in class javax.swing.text.StyledEditorKit

getAction

public javax.swing.Action getAction(java.lang.String name)

The Meta-Environment API