com.japisoft.xmlappkit.editor.source
Class SourceXMLEditor

java.lang.Object
  extended bycom.japisoft.xmlappkit.editor.AbstractXMLEditor
      extended bycom.japisoft.xmlappkit.editor.source.SourceXMLEditor
All Implemented Interfaces:
XMLEditor

public class SourceXMLEditor
extends AbstractXMLEditor

Editor for source

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Field Summary
static java.lang.String NAME
           
 
Constructor Summary
SourceXMLEditor(XMLAppContainer app, javax.swing.JTree tree)
           
 
Method Summary
 com.japisoft.xmlpad.XMLContainer getXMLContainer()
           
 void start(XMLEditingContext context)
          This is called each time we begin to use this editor
 void stop(XMLEditingContext context)
          This called when we stop to use this editor like alterning to another editor.
 
Methods inherited from class com.japisoft.xmlappkit.editor.AbstractXMLEditor
getActions, getEditingChoice, getListeners, getName, getView, init, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

SourceXMLEditor

public SourceXMLEditor(XMLAppContainer app,
                       javax.swing.JTree tree)
Method Detail

getXMLContainer

public com.japisoft.xmlpad.XMLContainer getXMLContainer()

start

public void start(XMLEditingContext context)
Description copied from interface: XMLEditor
This is called each time we begin to use this editor

Parameters:
context - Give some information like the current editing node or the root node

stop

public void stop(XMLEditingContext context)
Description copied from interface: XMLEditor
This called when we stop to use this editor like alterning to another editor. User can change the selected node and call the commit method for confirming, thus the XML document will be updated. Note that the commit must only be called once.