com.japisoft.xmlpad.editor
Class EditorContext

java.lang.Object
  extended bycom.japisoft.xmlpad.editor.EditorContext

public class EditorContext
extends java.lang.Object

Here the context for each Editor. This context gives essential data like the initial text, the current node for edition.

Once the editor has made an editing job, it must write the result with the setResult method.

Author:
(c) 2003 JAPISOFT / A.Brillant
See Also:
Editor

Constructor Summary
EditorContext(XMLContainer container, com.japisoft.fastparser.node.SimpleNode node, java.lang.String text)
           
 
Method Summary
 com.japisoft.fastparser.node.SimpleNode getEditedNode()
           
 java.lang.String getEditedText()
           
 java.lang.String getResult()
           
 XMLContainer getXMLContainer()
           
 void setResult(java.lang.String result)
          Set the editing result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorContext

public EditorContext(XMLContainer container,
                     com.japisoft.fastparser.node.SimpleNode node,
                     java.lang.String text)
Parameters:
node - The current edited node
text - The current edited text equals to the current edited node
Method Detail

getXMLContainer

public XMLContainer getXMLContainer()
Returns:
the current XMLContainer

getEditedNode

public com.japisoft.fastparser.node.SimpleNode getEditedNode()
Returns:
the current edited node

getEditedText

public java.lang.String getEditedText()
Returns:
the current edited text

setResult

public void setResult(java.lang.String result)
Set the editing result. null means there's no editing changes

Parameters:
result -

getResult

public java.lang.String getResult()
Returns:
the current editing result