com.japisoft.xmlpad.editor
Class EditorContext
java.lang.Object
com.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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorContext
public EditorContext(XMLContainer container,
com.japisoft.fastparser.node.SimpleNode node,
java.lang.String text)
- Parameters:
node
- The current edited nodetext
- The current edited text equals to the current edited node
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