project35.desktopDeployment
Class TreeSelectionEventManager

java.lang.Object
  extended by project35.desktopDeployment.TreeSelectionEventManager
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.TreeSelectionListener

public class TreeSelectionEventManager
extends java.lang.Object
implements javax.swing.event.TreeSelectionListener

This class is used to govern tree selection events. The challenging part of Project35's use of a record tree is to prevent people from going to the next node if they have made an error in the previous one. You have to revert control back to the original node without triggering another event. Very annoying. this class was carefully constructed to prevent an endless chain of tree selection events from happening when this situation arises. NavigationTree delegates a lot of its management of selection events to this class.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
TreeSelectionEventManager(NavigationTree navigationTree, java.util.ArrayList changeListeners)
           
 
Method Summary
 void ignore()
           
 void setActiveNode(NavigationTreeNode selectedNode)
           
 void setRecordView(RecordView recordView)
           
 void valueChanged(javax.swing.event.TreeSelectionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeSelectionEventManager

public TreeSelectionEventManager(NavigationTree navigationTree,
                                 java.util.ArrayList changeListeners)
Method Detail

ignore

public void ignore()

setRecordView

public void setRecordView(RecordView recordView)

setActiveNode

public void setActiveNode(NavigationTreeNode selectedNode)

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent event)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener