satc.swing
Class SyntaxEditorKit

java.lang.Object
  |
  +--javax.swing.text.EditorKit
        |
        +--javax.swing.text.DefaultEditorKit
              |
              +--satc.swing.SyntaxEditorKit
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class SyntaxEditorKit
extends javax.swing.text.DefaultEditorKit

Implementation of a syntax aware editor kit.

See Also:
Serialized Form

Inner classes 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
 
Fields inherited from class javax.swing.text.DefaultEditorKit
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deletePrevCharAction, 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
SyntaxEditorKit(java.lang.String syntaxName)
           
 
Method Summary
 javax.swing.text.Document createDefaultDocument()
          Creates an uninitialized text storage model that is appropriate for this type of editor.
 javax.swing.text.View createView(javax.swing.text.Element elem)
          ViewFactory method.
 java.lang.String getContentType()
          Gets the MIME type of the data that this kit represents support for.
 void installEditorKit(javax.swing.text.Document doc)
          Install this editor kit into a document.
 
Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret, getActions, getViewFactory, read, read, write, write
 
Methods inherited from class javax.swing.text.EditorKit
clone, deinstall, install
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxEditorKit

public SyntaxEditorKit(java.lang.String syntaxName)
Method Detail

createDefaultDocument

public javax.swing.text.Document createDefaultDocument()
Creates an uninitialized text storage model that is appropriate for this type of editor.
Overrides:
createDefaultDocument in class javax.swing.text.DefaultEditorKit
Returns:
the model

installEditorKit

public void installEditorKit(javax.swing.text.Document doc)
Install this editor kit into a document.

createView

public javax.swing.text.View createView(javax.swing.text.Element elem)
ViewFactory method.

getContentType

public java.lang.String getContentType()
Gets the MIME type of the data that this kit represents support for.
Overrides:
getContentType in class javax.swing.text.DefaultEditorKit
Returns:
the type