csheets.ext.deptree
Class DoubleClickNavigator

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by csheets.ext.deptree.DoubleClickNavigator
All Implemented Interfaces:
MouseListener, EventListener

public class DoubleClickNavigator
extends MouseAdapter

A mouse listener that updates the active cell of a spreadsheet when a cell node is double-clicked.

Author:
Einar Pehrson

Constructor Summary
DoubleClickNavigator(JTree tree, UIController uiController)
          Creates a new double click navigator.
 
Method Summary
 void mouseClicked(MouseEvent event)
          Sets the cell of a double-clicked node as the application's active cell.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleClickNavigator

public DoubleClickNavigator(JTree tree,
                            UIController uiController)
Creates a new double click navigator.

Parameters:
tree - the tree to use when determining the node at a given location
uiController - the user interface controller
Method Detail

mouseClicked

public void mouseClicked(MouseEvent event)
Sets the cell of a double-clicked node as the application's active cell.

Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class MouseAdapter
Parameters:
event - the event that was fired