com.japisoft.xmlpad.tree
Class RealTimeTreeManager

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended bycom.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

Nested Class Summary
 class RealTimeTreeManager.TreeDragSource
           
 
Constructor Summary
RealTimeTreeManager(XMLContainer container)
           
RealTimeTreeManager(XMLContainer container, javax.swing.JTree tree)
           
 
Method Summary
 void dispose()
           
 void error(java.lang.String message, int location, int line)
           
 void init()
           
 boolean isLocationLocked()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void notifyStructureChanged()
           
 com.japisoft.fastparser.node.SimpleNode relocatNode()
           
 com.japisoft.fastparser.node.SimpleNode relocatNode(javax.swing.tree.TreePath tpInit)
          Synchronize the current selection with the text
 void resetTreeLocation(com.japisoft.fastparser.node.SimpleNode content)
           
 void selectNodeFromPath(java.lang.String xpath)
           
 
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
 

Constructor Detail

RealTimeTreeManager

public RealTimeTreeManager(XMLContainer container)

RealTimeTreeManager

public RealTimeTreeManager(XMLContainer container,
                           javax.swing.JTree tree)
Method Detail

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)