Package editor

Class GosuEditorKit

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class GosuEditorKit
    extends javax.swing.text.DefaultEditorKit
    A 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 _preferences  
      private static GosuStyleContext g_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()  
    • Constructor Detail

      • GosuEditorKit

        public GosuEditorKit()
    • 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 type text/gosu.
        Overrides:
        getContentType in class javax.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:
        createDefaultDocument in class javax.swing.text.DefaultEditorKit
        Returns:
        The document model
      • getViewFactory

        public final GosuStyleContext getViewFactory()
        Overrides:
        getViewFactory in class javax.swing.text.DefaultEditorKit
        Returns:
        The view factory
      • setStylePreferences

        public void setStylePreferences​(GosuStyleContext preferences)