org.ccnx.ccn.utils.explorer.ContentExplorer.DirSelectionListener Class Reference

Class to handle tree component selections. More...

List of all members.

Public Member Functions

void valueChanged (TreeSelectionEvent event)
 Method to handle selection events.

Detailed Description

Class to handle tree component selections.


Member Function Documentation

void org.ccnx.ccn.utils.explorer.ContentExplorer.DirSelectionListener.valueChanged ( TreeSelectionEvent  event  ) 

Method to handle selection events.

If a node is selected for the first time and is a folder, name enumeration will begin under that prefix. This event is also triggered as the tree is collapsed. In this case, we do not want to reselect nodes that were already canceled since enumeration will be started again. To avoid this, the method checks if the path has any parent collapsed, if so, the event is not processed so name enumeration will not be restarted.

Parameters:
event TreeSelectionEvent object to handle.
Returns:
void

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:58 2011 for Content-Centric Networking in Java by  doxygen 1.6.3