net.sourceforge.jsxe
Class ViewPlugin

java.lang.Object
  extended bynet.sourceforge.jsxe.ActionPlugin
      extended bynet.sourceforge.jsxe.ViewPlugin

public abstract class ViewPlugin
extends ActionPlugin

This abstract class defines plugins that specify a view that is used to edit XML documents. This views are used to edit different types of XML documents. ViewPlugins are also ActionPlugins which means that they specify actions that jsXe can perform. These can be added to menus and dialogs etc.

Since:
jsXe 0.4 beta
Version:
$Id: ViewPlugin.java,v 1.5 2005/04/15 20:00:50 ian_lewis Exp $
Author:
Ian Lewis (IanLewis@member.fsf.org)

Nested Class Summary
 
Nested classes inherited from class net.sourceforge.jsxe.ActionPlugin
ActionPlugin.Broken
 
Constructor Summary
ViewPlugin()
           
 
Method Summary
abstract  DocumentView newDocumentView(DocumentBuffer document)
          Creates a new DocumentView for the given document.
 
Methods inherited from class net.sourceforge.jsxe.ActionPlugin
addAction, getActionSet, getOptionsPanel, getPluginMenu, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewPlugin

public ViewPlugin()
Method Detail

newDocumentView

public abstract DocumentView newDocumentView(DocumentBuffer document)
                                      throws IOException
Creates a new DocumentView for the given document. The DocumentView can is then used to retrieve a component for this view plugin.

Parameters:
document - the document to open the DocumentView with
Throws:
IOException - if the view cannot be used to view this document