sidekick
Class SideKickTree.MyTreeSelectionListener

java.lang.Object
  extended bysidekick.SideKickTree.MyTreeSelectionListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.TreeSelectionListener
Enclosing class:
SideKickTree

class SideKickTree.MyTreeSelectionListener
extends java.lang.Object
implements javax.swing.event.TreeSelectionListener


Field Summary
(package private)  javax.swing.JEditorPane aEditorPane
           
(package private)  javax.swing.JTree aTree
           
 
Constructor Summary
SideKickTree.MyTreeSelectionListener(javax.swing.JTree tree, javax.swing.JEditorPane epane)
           
 
Method Summary
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
          Bad implementation, needs refactoring TODO: Should change the focus to XmlInsert when user presses Enter?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aTree

javax.swing.JTree aTree

aEditorPane

javax.swing.JEditorPane aEditorPane
Constructor Detail

SideKickTree.MyTreeSelectionListener

public SideKickTree.MyTreeSelectionListener(javax.swing.JTree tree,
                                            javax.swing.JEditorPane epane)
Method Detail

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Bad implementation, needs refactoring TODO: Should change the focus to XmlInsert when user presses Enter? -Fix the problem with ArrayIndexOutOfBoundsException.

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
Parameters:
e - TreeSelectionEvent 10.05.2004 JL: initial version 11.05.2004 OP, JL: only one insertion inside instead of many don't add nested ghosts for stand-alone-elements 12.05.2004 JL: Changed ghost elements to use GhostElement-objects as userObject --> the problem of removing text nodes was also solved 14.5.2004 OP: Sends the UpdateTagListMsg, JL: changed few node.getUserObject() -statements to value at the end of the method 18.5.2004 JL, OP: - Fixed bug with nullPointerExceptions by adding two if ( !(newPath == null) ) -lines when removing ghostElements - Added aEditorPane updates which rely on new TextElement-class 19.5.2004 JL: a ArrayIndexOutOfBoundsException found, surrounded with try-catch