net.sourceforge.spedit.core
Class XMLEditorKit
java.lang.Object
|
+--javax.swing.text.EditorKit
|
+--net.sourceforge.spedit.core.XMLEditorKit
- All Implemented Interfaces:
- Cloneable, Serializable
- public class XMLEditorKit
- extends EditorKit
TODO
- See Also:
- Serialized Form
Method Summary |
void |
configureView(String filename)
Configures the XMLEditorKit attached view using the given
configuration XML file. |
Caret |
createCaret()
|
Document |
createDefaultDocument()
|
Action[] |
getActions()
|
String |
getContentType()
|
ViewFactory |
getViewFactory()
|
void |
read(InputStream in,
Document doc,
int pos)
|
void |
read(Reader in,
Document doc,
int pos)
|
void |
write(OutputStream out,
Document doc,
int pos,
int len)
|
void |
write(Writer out,
Document doc,
int pos,
int len)
|
XML_CONTENT_TYPE
public static final String XML_CONTENT_TYPE
XMLEditorKit
public XMLEditorKit()
XMLEditorKit
public XMLEditorKit(String configuration)
createDefaultDocument
public Document createDefaultDocument()
- Overrides:
createDefaultDocument
in class EditorKit
createCaret
public Caret createCaret()
- Overrides:
createCaret
in class EditorKit
getActions
public Action[] getActions()
- Overrides:
getActions
in class EditorKit
getContentType
public String getContentType()
- Overrides:
getContentType
in class EditorKit
getViewFactory
public ViewFactory getViewFactory()
- Overrides:
getViewFactory
in class EditorKit
configureView
public void configureView(String filename)
- Configures the
XMLEditorKit
attached view using the given
configuration XML file. In case the file is not found or does not
conform to its schema, the XMLViewFactory
will not be
initalized.
read
public void read(InputStream in,
Document doc,
int pos)
- Overrides:
read
in class EditorKit
read
public void read(Reader in,
Document doc,
int pos)
- Overrides:
read
in class EditorKit
write
public void write(OutputStream out,
Document doc,
int pos,
int len)
- Overrides:
write
in class EditorKit
write
public void write(Writer out,
Document doc,
int pos,
int len)
- Overrides:
write
in class EditorKit