Package editor
Class GosuEditorKit
- java.lang.Object
-
- javax.swing.text.EditorKit
-
- javax.swing.text.DefaultEditorKit
-
- editor.GosuEditorKit
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class GosuEditorKit extends javax.swing.text.DefaultEditorKitA simple EditorKit for editing GosuDocuments.- 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 Modifier and Type Field Description private GosuStyleContext_preferencesprivate static GosuStyleContextg_defPreferences-
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 javax.swing.text.DocumentcreateDefaultDocument()Creates an uninitialized text storage model that is appropriate for this type of editor.java.lang.StringgetContentType()Get the MIME type of the data that this kit represents support for.static GosuStyleContextgetStylePreferences()GosuStyleContextgetViewFactory()voidsetStylePreferences(GosuStyleContext preferences)
-
-
-
Field Detail
-
g_defPreferences
private static GosuStyleContext g_defPreferences
-
_preferences
private GosuStyleContext _preferences
-
-
Method Detail
-
getStylePreferences
public static GosuStyleContext getStylePreferences()
- Returns:
- The GosuStyleContext controlling the visual preferences.
-
getContentType
public java.lang.String getContentType()
Get the MIME type of the data that this kit represents support for. This kit supports the typetext/gosu.- Overrides:
getContentTypein classjavax.swing.text.DefaultEditorKit
-
createDefaultDocument
public javax.swing.text.Document createDefaultDocument()
Creates an uninitialized text storage model that is appropriate for this type of editor.- Overrides:
createDefaultDocumentin classjavax.swing.text.DefaultEditorKit- Returns:
- The document model
-
getViewFactory
public final GosuStyleContext getViewFactory()
- Overrides:
getViewFactoryin classjavax.swing.text.DefaultEditorKit- Returns:
- The view factory
-
setStylePreferences
public void setStylePreferences(GosuStyleContext preferences)
-
-