|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
com.japisoft.xmlpad.bean.XMLEditorKit
Here a swing EditorKit for XML
Nested Class Summary |
Nested classes 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 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 | |
XMLEditorKit(XMLDocument doc)
|
Method Summary | |
javax.swing.text.View |
create(javax.swing.text.Element elem)
|
javax.swing.text.Document |
createDefaultDocument()
|
java.util.Hashtable |
getColorsForAttributes()
|
java.util.Hashtable |
getColorsForPrefix()
|
java.util.Hashtable |
getColorsForTags()
|
java.lang.String |
getContentType()
|
javax.swing.text.ViewFactory |
getViewFactory()
View factory for text element |
void |
setColorForAttribute(java.util.Hashtable htAttColor)
Define colors for all attributes |
void |
setColorForAttribute(java.lang.String attributeName,
java.awt.Color c)
Choose a particular color for an attribute |
void |
setColorForPrefix(java.util.Hashtable htPrefixColor)
Define colors for all tag prefix |
void |
setColorForPrefix(java.lang.String prefixName,
java.awt.Color c)
Choose a particular color for a tag prefix |
void |
setColorForTag(java.util.Hashtable htTagColor)
Define colors for all tagName |
void |
setColorForTag(java.lang.String tagName,
java.awt.Color c)
Define a color for this tagName |
void |
setSyntaxColor(boolean syntaxColor)
Reset it to support XML syntax color. |
Methods inherited from class javax.swing.text.DefaultEditorKit |
createCaret, getActions, read, read, write, write |
Methods inherited from class javax.swing.text.EditorKit |
clone, deinstall, install |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLEditorKit(XMLDocument doc)
Method Detail |
public javax.swing.text.ViewFactory getViewFactory()
public void setSyntaxColor(boolean syntaxColor)
true
public javax.swing.text.View create(javax.swing.text.Element elem)
create
in interface javax.swing.text.ViewFactory
elem
- element to drawpublic javax.swing.text.Document createDefaultDocument()
public java.lang.String getContentType()
public java.util.Hashtable getColorsForTags()
public void setColorForTag(java.lang.String tagName, java.awt.Color c)
public void setColorForTag(java.util.Hashtable htTagColor)
public void setColorForAttribute(java.lang.String attributeName, java.awt.Color c)
public void setColorForAttribute(java.util.Hashtable htAttColor)
public java.util.Hashtable getColorsForAttributes()
public void setColorForPrefix(java.lang.String prefixName, java.awt.Color c)
public void setColorForPrefix(java.util.Hashtable htPrefixColor)
public java.util.Hashtable getColorsForPrefix()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |