    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.

##

xv_XmlEditorKit()
  Default constructor.

##

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

##

xv_XmlEditorKit

     public xv_XmlEditorKit()

  Default constructor.

##

setStylePreferences

     public void setStylePreferences(xv_XmlStyleContext InputXmlStyleContext)

  Set the XML style context.

  Parameters:
    InputXmlStyleContext - The style context

getStylePreferences

     public xv_XmlStyleContext getStylePreferences()

  Retrieve the XML style context.

  Returns:
    The style context

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

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

createDefaultDocument

     public Document createDefaultDocument()

  Create an uninitialized text storage model appropriate for this type of editor.

  Returns:
    the model
  Overrides:
    createDefaultDocument in class StyledEditorKit

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