public class ITLEditorKit
extends javax.swing.text.DefaultEditorKit
implements javax.swing.text.ViewFactory
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ITL_MIME_TYPE |
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 and Description |
---|
ITLEditorKit()
Creates a new instance of XMLEditorKit
|
Modifier and Type | Method and Description |
---|---|
javax.swing.text.View |
create(javax.swing.text.Element elem)
Creates a view from an element that can be used for painting that element.
|
javax.swing.text.Document |
createDefaultDocument()
Creates a new instance of the default document for this editor kit.
|
java.lang.String |
getContentType()
Get the MIME type of the data that this
kit represents support for.
|
javax.swing.text.ViewFactory |
getViewFactory()
Returns an instance of a view factory that can be used for creating views from
elements.
|
void |
install(javax.swing.JEditorPane c)
Overriden to set the JEditorPane font to match with the XMLContext
|
public static final java.lang.String ITL_MIME_TYPE
public void install(javax.swing.JEditorPane c)
install
in class javax.swing.text.EditorKit
public java.lang.String getContentType()
text/xml
.getContentType
in class javax.swing.text.DefaultEditorKit
public javax.swing.text.ViewFactory getViewFactory()
ViewFactory
.getViewFactory
in class javax.swing.text.DefaultEditorKit
public javax.swing.text.View create(javax.swing.text.Element elem)
create
in interface javax.swing.text.ViewFactory
elem
- The elementpublic javax.swing.text.Document createDefaultDocument()
createDefaultDocument
in class javax.swing.text.DefaultEditorKit