edu.ucsb.nceas.morpho.framework
Interface EditorInterface

All Known Implementing Classes:
EditorPlugin

public interface EditorInterface

All component plugins that require the editing of XML documents should implement this interface and register themselves as a service provider for the interface with the framework.


Method Summary
 void openEditor(java.lang.String xmltext)
          This method is called to open a XML editor that resides either
 void openEditor(java.lang.String xmltext, java.lang.String id, java.lang.String location, EditingCompleteListener listener)
          This method is called to open a XML editor with the indicated xmltext and an editingCompletedListener to be notified when the editing is completed
 void openEditor(java.lang.String xmltext, java.lang.String id, java.lang.String location, EditingCompleteListener listener, boolean template)
          This method is called to open a XML editor with the indicated xmltext and an editingCompletedListener to be notified when the editing is completed.
 void openEditor(java.lang.String xmltext, java.lang.String id, java.lang.String location, java.lang.String nodeName, java.lang.String nodeValue, EditingCompleteListener listener)
          This method is called to open a XML editor with the indicated xmltext and an editingCompletedListener to be notified when the editing is completed, the nodename and nodevalue parameters indicated node to be selected when documement is opened
 

Method Detail

openEditor

public void openEditor(java.lang.String xmltext)
This method is called to open a XML editor that resides either
Parameters:
xmltext - is the xml to be edited in the form of a String

openEditor

public void openEditor(java.lang.String xmltext,
                       java.lang.String id,
                       java.lang.String location,
                       EditingCompleteListener listener)
This method is called to open a XML editor with the indicated xmltext and an editingCompletedListener to be notified when the editing is completed

openEditor

public void openEditor(java.lang.String xmltext,
                       java.lang.String id,
                       java.lang.String location,
                       EditingCompleteListener listener,
                       boolean template)
This method is called to open a XML editor with the indicated xmltext and an editingCompletedListener to be notified when the editing is completed. In this case, only the template based on the DocType is returned (i.e. no merging with existing data) For use in creating new docs.

openEditor

public void openEditor(java.lang.String xmltext,
                       java.lang.String id,
                       java.lang.String location,
                       java.lang.String nodeName,
                       java.lang.String nodeValue,
                       EditingCompleteListener listener)
This method is called to open a XML editor with the indicated xmltext and an editingCompletedListener to be notified when the editing is completed, the nodename and nodevalue parameters indicated node to be selected when documement is opened


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.