com.japisoft.xmlpad.tree
Class TreeListeners

java.lang.Object
  extended byGlobalMouseAdapter
      extended bycom.japisoft.xmlpad.tree.TreeListeners
All Implemented Interfaces:
StructureDamagedListener

public class TreeListeners
extends GlobalMouseAdapter
implements StructureDamagedListener

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
See Also:
Serialized Form

Nested Class Summary
 class TreeListeners.TreeDragSource
           
 
Field Summary
static java.lang.Class _parsingJobClass
           
 
Constructor Summary
TreeListeners(XMLContainer container)
           
TreeListeners(XMLContainer container, javax.swing.JTree tree)
           
 
Method Summary
 void dispose()
           
 TreeState getState()
           
 javax.swing.JTree getTree()
           
 com.japisoft.xmlpad.tree.TreeErrorListener getTreeErrorListener()
           
 void init()
           
 boolean isLocationLocked()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(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(SimpleNode content)
           
 void selectNodeFromPath(java.lang.String xpath)
           
 void setPopupEnabled(boolean enabled)
           
 void setState(TreeState state)
          Update the current tree state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parsingJobClass

public static java.lang.Class _parsingJobClass
Constructor Detail

TreeListeners

public TreeListeners(XMLContainer container)

TreeListeners

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

dispose

public void dispose()

getTreeErrorListener

public com.japisoft.xmlpad.tree.TreeErrorListener getTreeErrorListener()

init

public void init()

getTree

public javax.swing.JTree getTree()

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)

setPopupEnabled

public void setPopupEnabled(boolean enabled)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)

notifiedErrorNonTemporary

public void notifiedErrorNonTemporary()
For inner usage only


mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)

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 TreeState getState()
Returns:
the current tree state

setState

public void setState(TreeState state)
Update the current tree state


resetTreeLocation

public void resetTreeLocation(SimpleNode content)


Copyright © 2006 JAPISoft. All Rights Reserved.