Package editor
Class GosuEditorKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
editor.GosuEditorKit
- All Implemented Interfaces:
Serializable
,Cloneable
A simple EditorKit for editing GosuDocuments.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionCreates an uninitialized text storage model that is appropriate for this type of editor.Get the MIME type of the data that this kit represents support for.static GosuStyleContext
final GosuStyleContext
void
setStylePreferences
(GosuStyleContext preferences) Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret, getActions, read, read, write, write
-
Field Details
-
g_defPreferences
-
_preferences
-
-
Constructor Details
-
GosuEditorKit
public GosuEditorKit()
-
-
Method Details
-
getStylePreferences
- Returns:
- The GosuStyleContext controlling the visual preferences.
-
getContentType
Get the MIME type of the data that this kit represents support for. This kit supports the typetext/gosu
.- Overrides:
getContentType
in classDefaultEditorKit
-
createDefaultDocument
Creates an uninitialized text storage model that is appropriate for this type of editor.- Overrides:
createDefaultDocument
in classDefaultEditorKit
- Returns:
- The document model
-
getViewFactory
- Overrides:
getViewFactory
in classDefaultEditorKit
- Returns:
- The view factory
-
setStylePreferences
-