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

Field Summary
static String XML_CONTENT_TYPE
           
 
Constructor Summary
XMLEditorKit()
           
XMLEditorKit(String configuration)
           
 
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)
           
 
Methods inherited from class javax.swing.text.EditorKit
clone, deinstall, install
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_CONTENT_TYPE

public static final String XML_CONTENT_TYPE
Constructor Detail

XMLEditorKit

public XMLEditorKit()

XMLEditorKit

public XMLEditorKit(String configuration)
Method Detail

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