Package editor
Class GosuEditorKit
- java.lang.Object
-
- javax.swing.text.EditorKit
-
- javax.swing.text.DefaultEditorKit
-
- editor.GosuEditorKit
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class GosuEditorKit extends DefaultEditorKit
A simple EditorKit for editing GosuDocuments.- See Also:
- Serialized Form
-
-
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
-
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 GosuEditorKit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
createDefaultDocument()
Creates an uninitialized text storage model that is appropriate for this type of editor.String
getContentType()
Get the MIME type of the data that this kit represents support for.static GosuStyleContext
getStylePreferences()
GosuStyleContext
getViewFactory()
void
setStylePreferences(GosuStyleContext preferences)
-
Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret, getActions, read, read, write, write
-
-
-
-
Method Detail
-
getStylePreferences
public static GosuStyleContext getStylePreferences()
- Returns:
- The GosuStyleContext controlling the visual preferences.
-
getContentType
public String 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
public Document createDefaultDocument()
Creates an uninitialized text storage model that is appropriate for this type of editor.- Overrides:
createDefaultDocument
in classDefaultEditorKit
- Returns:
- The document model
-
getViewFactory
public final GosuStyleContext getViewFactory()
- Overrides:
getViewFactory
in classDefaultEditorKit
- Returns:
- The view factory
-
setStylePreferences
public void setStylePreferences(GosuStyleContext preferences)
-
-