jsyntaxpane.syntaxkits
Class KreatorSyntaxKit

java.lang.Object
  extended by javax.swing.text.EditorKit
      extended by javax.swing.text.DefaultEditorKit
          extended by jsyntaxpane.DefaultSyntaxKit
              extended by jsyntaxpane.syntaxkits.KreatorSyntaxKit
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.text.ViewFactory

public abstract class KreatorSyntaxKit
extends DefaultSyntaxKit

See Also:
Serialized Form

Nested Class Summary
 
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 inherited from class jsyntaxpane.DefaultSyntaxKit
CONFIG_CARETCOLOR, CONFIG_COMPONENTS, CONFIG_MENU, CONFIG_SELECTION, CONFIG_TOOLBAR, CONFIG_TOOLBAR_BORDER, CONFIG_TOOLBAR_BORDER_SIZE, CONFIG_TOOLBAR_OPAQUE, CONFIG_TOOLBAR_ROLLOVER
 
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
KreatorSyntaxKit(Lexer lexer)
           
 
Method Summary
abstract  java.lang.String getSupportedFileExtension()
          Returns the file extension of the files this kit highlights (without the dot).
static KreatorSyntaxKit getSyntaxKitFor(java.lang.String fileextension)
          Returns an appropriate syntax highlighter for a file with the given file extension.
static boolean isSupported(java.lang.String fileextension)
          Checks whether the given file extension is supported by any knowledge base parser.
 void registerContentType()
           
 
Methods inherited from class jsyntaxpane.DefaultSyntaxKit
addAbbreviation, addActions, addComponents, addPopupMenu, addToolBarActions, create, createDefaultDocument, deinstall, deinstallComponent, getAbbreviation, getAbbreviations, getConfig, getConfig, getContentType, getContentTypes, getProperty, getViewFactory, initKit, install, installComponent, isComponentInstalled, registerContentType, registerContentType, setConfig, setProperty, toggleComponent
 
Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret, getActions, read, read, write, write
 
Methods inherited from class javax.swing.text.EditorKit
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KreatorSyntaxKit

public KreatorSyntaxKit(Lexer lexer)
Method Detail

isSupported

public static boolean isSupported(java.lang.String fileextension)
Checks whether the given file extension is supported by any knowledge base parser.

Parameters:
fileextension - a string representing a file extension.
Returns:
"true" if there is a parser for the given file extension.

getSyntaxKitFor

public static KreatorSyntaxKit getSyntaxKitFor(java.lang.String fileextension)
Returns an appropriate syntax highlighter for a file with the given file extension.

Parameters:
fileextension - a string representing a file extension.
Returns:
a syntax hightlighter for files with the given file extension.

registerContentType

public void registerContentType()

getSupportedFileExtension

public abstract java.lang.String getSupportedFileExtension()
Returns the file extension of the files this kit highlights (without the dot).

Returns:
the file extension of the files this kit highlights (without the dot).