kawigi.editor
Class ConfigurableEditorKit

java.lang.Object
  |
  +--javax.swing.text.EditorKit
        |
        +--javax.swing.text.DefaultEditorKit
              |
              +--javax.swing.text.StyledEditorKit
                    |
                    +--kawigi.editor.ConfigurableEditorKit
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ConfigurableEditorKit
extends javax.swing.text.StyledEditorKit

Ummm... It's configurable because you can "Configure" the kind of View its ViewFactory returns. And it sounds better than "HackableEditorKit".

See Also:
Serialized Form

Field Summary
protected  javax.swing.text.ViewFactory factory
          My ViewFactory that I return:
protected  java.lang.Class viewClass
          The Class of View components for this EditorKit.
 
Fields inherited from class javax.swing.text.DefaultEditorKit
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deletePrevCharAction, 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
ConfigurableEditorKit()
          Constructs a ConfigurableEditorKit with no default View implementation.
ConfigurableEditorKit(java.lang.Class v)
          Constructs a ConfigurableEditorKit that uses Views of class v.
 
Method Summary
 javax.swing.text.ViewFactory getViewFactory()
          Overridden from StyledEditorKit to return my ViewFactory.
 void setViewClass(java.lang.Class v)
          Sets the class used to create Views for this EditorKit.
 
Methods inherited from class javax.swing.text.StyledEditorKit
clone, createDefaultDocument, createInputAttributes, deinstall, getActions, getCharacterAttributeRun, getInputAttributes, install
 
Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret, getContentType, read, read, write, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewClass

protected java.lang.Class viewClass
The Class of View components for this EditorKit.


factory

protected javax.swing.text.ViewFactory factory
My ViewFactory that I return:

Constructor Detail

ConfigurableEditorKit

public ConfigurableEditorKit(java.lang.Class v)
Constructs a ConfigurableEditorKit that uses Views of class v. v should be compatible with javax.swing.text.View.


ConfigurableEditorKit

public ConfigurableEditorKit()
Constructs a ConfigurableEditorKit with no default View implementation.

Method Detail

setViewClass

public void setViewClass(java.lang.Class v)
Sets the class used to create Views for this EditorKit. v should be compatible with javax.swing.text.View.


getViewFactory

public javax.swing.text.ViewFactory getViewFactory()
Overridden from StyledEditorKit to return my ViewFactory.

Overrides:
getViewFactory in class javax.swing.text.StyledEditorKit