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 ability to receive event from the current Document and change it to a new tree view and location.

Version:
1.0
Author:
(c) 2002-2004 JAPISOFT

Nested Class Summary
 class RealTimeTreeManager.TreeDragSource
           
 
Field Summary
static java.lang.Class _parsingJobClass
           
 
Constructor Summary
RealTimeTreeManager(com.japisoft.xmlpad.XMLContainer container)
           
RealTimeTreeManager(com.japisoft.xmlpad.XMLContainer container, javax.swing.JTree tree)
           
 
Method Summary
 void dispose()
           
 void error(java.lang.String message, int location, int line)
           
 com.japisoft.xmlpad.tree.TreeState getState()
           
 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 notifiedErrorNonTemporary()
          For inner usage only
 void notifyStructureChanged()
           
 void resetTreeLocation(com.japisoft.fastparser.node.SimpleNode content)
           
 void selectNodeFromPath(java.lang.String xpath)
           
 void setState(com.japisoft.xmlpad.tree.TreeState state)
          Update the current tree state
 
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
 

Field Detail

_parsingJobClass

public static java.lang.Class _parsingJobClass
Constructor Detail

RealTimeTreeManager

public RealTimeTreeManager(com.japisoft.xmlpad.XMLContainer container)

RealTimeTreeManager

public RealTimeTreeManager(com.japisoft.xmlpad.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
Overrides:
mousePressed in class java.awt.event.MouseAdapter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter

notifiedErrorNonTemporary

public void notifiedErrorNonTemporary()
For inner usage only


mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter

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

getState

public com.japisoft.xmlpad.tree.TreeState getState()
Returns:
the current tree state

setState

public void setState(com.japisoft.xmlpad.tree.TreeState state)
Update the current tree state


resetTreeLocation

public void resetTreeLocation(com.japisoft.fastparser.node.SimpleNode content)