Inherits javax::swing::event::TreeSelectionListener.
Public Member Functions | |
void | valueChanged (TreeSelectionEvent event) |
Method to handle selection events. |
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.
event | TreeSelectionEvent object to handle. |