All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xv.xv_XmlEditorKit

java.lang.Object
   |
   +----com.sun.java.swing.text.EditorKit
           |
           +----com.sun.java.swing.text.DefaultEditorKit
                   |
                   +----com.sun.java.swing.text.StyledEditorKit
                           |
                           +----xv.xv_XmlEditorKit

public class xv_XmlEditorKit
extends StyledEditorKit
A Swing text editor kit to support the editing of XML. This kit supports a fairly minimal handling of editing java text content. It supports syntax highlighting and produces the lexical structure of the document as best it can.


Constructor Index

 o xv_XmlEditorKit()
Default constructor.

Method Index

 o clone()
Create a copy of the editor kit.
 o createDefaultDocument()
Create an uninitialized text storage model appropriate for this type of editor.
 o getContentType()
Get the MIME type of the data that this kit represents support for.
 o getStylePreferences()
Retrieve the XML style context.
 o getViewFactory()
Return the factory for producing views of any models that are produced by this kit.
 o setStylePreferences(xv_XmlStyleContext)
Set the XML style context.

Constructors

 o xv_XmlEditorKit
 public xv_XmlEditorKit()
Default constructor.

Methods

 o setStylePreferences
 public void setStylePreferences(xv_XmlStyleContext InputXmlStyleContext)
Set the XML style context.

Parameters:
InputXmlStyleContext - The style context
 o getStylePreferences
 public xv_XmlStyleContext getStylePreferences()
Retrieve the XML style context.

Returns:
The style context
 o getContentType
 public String getContentType()
Get the MIME type of the data that this kit represents support for. This kit supports the type text/xml.

Overrides:
getContentType in class DefaultEditorKit
 o clone
 public Object clone()
Create a copy of the editor kit. This allows an implementation to serve as a prototype for others, so that they can be quickly created.

Overrides:
clone in class StyledEditorKit
 o createDefaultDocument
 public Document createDefaultDocument()
Create an uninitialized text storage model appropriate for this type of editor.

Returns:
the model
Overrides:
createDefaultDocument in class StyledEditorKit
 o getViewFactory
 public final ViewFactory getViewFactory()
Return the factory for producing views of any models that are produced by this kit.

Returns:
The view factory
Overrides:
getViewFactory in class StyledEditorKit

All Packages  Class Hierarchy  This Package  Previous  Next  Index