SPT RWT Application API

com.sptci.rwt.webui.tree
Class SelectionListener

java.lang.Object
  extended by com.sptci.rwt.webui.tree.SelectionListener
All Implemented Interfaces:
TreeSelectionListener, EventListener

public class SelectionListener
extends Object
implements TreeSelectionListener

A TreeSelectionListener for selections on AbstractNodes.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: SelectionListener.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-10-07

Field Summary
protected  MainController controller
          The controller used to interact with the rest of the application.
 
Constructor Summary
SelectionListener(MainController controller)
          Create a new instance of the listener using the specified controller.
 
Method Summary
protected  void displayNode(AbstractNode node)
          Display details for the node selected in the MainView.right component.
 void valueChanged(TreeSelectionEvent event)
          Update MainView.right with meta data relevant to the selected AbstractNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

protected final MainController controller
The controller used to interact with the rest of the application.

Constructor Detail

SelectionListener

public SelectionListener(MainController controller)
Create a new instance of the listener using the specified controller.

Parameters:
controller - The controller to use.
Method Detail

valueChanged

public void valueChanged(TreeSelectionEvent event)
Update MainView.right with meta data relevant to the selected AbstractNode.

Specified by:
valueChanged in interface TreeSelectionListener
Parameters:
event - The selection event that was triggered.
See Also:
displayNode(com.sptci.rwt.webui.tree.AbstractNode)

displayNode

protected void displayNode(AbstractNode node)
Display details for the node selected in the MainView.right component.

Parameters:
node - The node whose model information is to be displayed.

SPT RWT Application API