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 DocumentcreateDefaultDocument()Creates an uninitialized text storage model that is appropriate for this type of editor.StringgetContentType()Get the MIME type of the data that this kit represents support for.static GosuStyleContextgetStylePreferences()GosuStyleContextgetViewFactory()voidsetStylePreferences(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:
getContentTypein classDefaultEditorKit
-
createDefaultDocument
public Document createDefaultDocument()
Creates an uninitialized text storage model that is appropriate for this type of editor.- Overrides:
createDefaultDocumentin classDefaultEditorKit- Returns:
- The document model
-
getViewFactory
public final GosuStyleContext getViewFactory()
- Overrides:
getViewFactoryin classDefaultEditorKit- Returns:
- The view factory
-
setStylePreferences
public void setStylePreferences(GosuStyleContext preferences)
-
-