com.japisoft.xmlpad.tree
Class RealTimeTreeManager
java.lang.Object
java.awt.event.MouseAdapter
com.japisoft.xmlpad.tree.RealTimeTreeManager
- All Implemented Interfaces:
- com.japisoft.fastparser.ErrorSignal, java.util.EventListener, java.awt.event.MouseListener, StructureDamagedListener
- public class RealTimeTreeManager
- extends java.awt.event.MouseAdapter
- implements StructureDamagedListener, com.japisoft.fastparser.ErrorSignal
This is a manager for the real time tree. It has the hability to
receive event from the current Document and change it
to a new tree view and location.
- Version:
- 1.0
- Author:
- (c) 2002-2003 JAPISOFT / Alexandre Brillant
Methods inherited from class java.awt.event.MouseAdapter |
mouseEntered, mouseExited |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RealTimeTreeManager
public RealTimeTreeManager(XMLContainer container)
RealTimeTreeManager
public RealTimeTreeManager(XMLContainer container,
javax.swing.JTree tree)
init
public void init()
dispose
public void dispose()
error
public void error(java.lang.String message,
int location,
int line)
- Specified by:
error
in interface com.japisoft.fastparser.ErrorSignal
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
relocatNode
public com.japisoft.fastparser.node.SimpleNode relocatNode()
relocatNode
public com.japisoft.fastparser.node.SimpleNode relocatNode(javax.swing.tree.TreePath tpInit)
- Synchronize the current selection with the text
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
selectNodeFromPath
public void selectNodeFromPath(java.lang.String xpath)
isLocationLocked
public boolean isLocationLocked()
- Returns:
- true if a parsing process is working avoiding the real time location
notifyStructureChanged
public void notifyStructureChanged()
- Specified by:
notifyStructureChanged
in interface StructureDamagedListener
resetTreeLocation
public void resetTreeLocation(com.japisoft.fastparser.node.SimpleNode content)