© 2006-2007 ETH Zurich

org.ximtec.igesture.tool.explorer
Class ExplorerTreeController

java.lang.Object
  extended by org.ximtec.igesture.tool.core.DefaultController
      extended by org.ximtec.igesture.tool.explorer.ExplorerTreeController
All Implemented Interfaces:
PropertyChangeListener, EventListener, TreeSelectionListener, Controller

public class ExplorerTreeController
extends DefaultController
implements TreeSelectionListener

Controller Component of the Explorer Tree.

Since:
igesture
Version:
1.0
Author:
UeliKurmann

Constructor Summary
ExplorerTreeController(Controller parentController, ExplorerTreeContainer container, ExplorerTreeModel model)
           
ExplorerTreeController(Controller parentController, ExplorerTreeContainer container, ExplorerTreeModel model, TreeCellRenderer renderer)
          Constructor
 
Method Summary
 ExplorerTree getExplorerTree()
           
 ExplorerTreeView getExplorerTreeView()
          Returns the currently active explorer tree view.
 TabbedView getView()
          Returns the view component for this specific controller.
 void propertyChange(PropertyChangeEvent evt)
           
 void selectNode(Object obj)
           
 void valueChanged(TreeSelectionEvent e)
           
 
Methods inherited from class org.ximtec.igesture.tool.core.DefaultController
addAction, addController, execute, getAction, getControllers, getLocator, getParent, isRoot, removeAllControllers, removeController, setLocator, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplorerTreeController

public ExplorerTreeController(Controller parentController,
                              ExplorerTreeContainer container,
                              ExplorerTreeModel model,
                              TreeCellRenderer renderer)
Constructor

Parameters:
parentController -
container -
model -
renderer -

ExplorerTreeController

public ExplorerTreeController(Controller parentController,
                              ExplorerTreeContainer container,
                              ExplorerTreeModel model)
Parameters:
container - the container where the components are visualized.
model - the Explorer Tree model.
nodeInfos - a map of NodeInfos
Method Detail

valueChanged

public void valueChanged(TreeSelectionEvent e)
Specified by:
valueChanged in interface TreeSelectionListener

getView

public TabbedView getView()
Description copied from interface: Controller
Returns the view component for this specific controller.

Specified by:
getView in interface Controller
Returns:
the view component for this specific controller.

selectNode

public void selectNode(Object obj)

getExplorerTreeView

public ExplorerTreeView getExplorerTreeView()
Returns the currently active explorer tree view. (the view of the selected node)

Returns:

getExplorerTree

public ExplorerTree getExplorerTree()

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class DefaultController

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.