csheets.ext.deptree
Class DoubleClickNavigator
java.lang.Object
java.awt.event.MouseAdapter
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
|
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 locationuiController - the user interface controller
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