Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

JTreeTable::ListToTreeSelectionModelWrapper Class Reference

Inheritance diagram for JTreeTable::ListToTreeSelectionModelWrapper:
[legend]
Collaboration diagram for JTreeTable::ListToTreeSelectionModelWrapper:
[legend]
List of all members.

Public Methods

 ListToTreeSelectionModelWrapper ()
void resetRowSelection ()

Protected Methods

ListSelectionListener createListSelectionListener ()
void updateSelectedPathsFromSelectedRows ()

Protected Attributes

boolean updatingListSelectionModel

Private Methods

ListSelectionModel getListSelectionModel ()

Detailed Description

ListToTreeSelectionModelWrapper extends DefaultTreeSelectionModel to listen for changes in the ListSelectionModel it maintains. Once a change in the ListSelectionModel happens, the paths are updated in the DefaultTreeSelectionModel.

Definition at line 170 of file JTreeTable.java.


Member Function Documentation

ListSelectionListener JTreeTable::ListToTreeSelectionModelWrapper::createListSelectionListener   [inline, protected]
 

Creates and returns an instance of ListSelectionHandler.

Definition at line 211 of file JTreeTable.java.

ListSelectionModel JTreeTable::ListToTreeSelectionModelWrapper::getListSelectionModel   [inline, private]
 

Returns the list selection model. ListToTreeSelectionModelWrapper listens for changes to this model and updates the selected paths accordingly.

Definition at line 183 of file JTreeTable.java.

void JTreeTable::ListToTreeSelectionModelWrapper::resetRowSelection   [inline]
 

This is overridden to set updatingListSelectionModel and message super. This is the only place DefaultTreeSelectionModel alters the ListSelectionModel.

Definition at line 192 of file JTreeTable.java.

void JTreeTable::ListToTreeSelectionModelWrapper::updateSelectedPathsFromSelectedRows   [inline, protected]
 

If updatingListSelectionModel is false, this will reset the selected paths from the selected rows in the list selection model.

Definition at line 220 of file JTreeTable.java.


Member Data Documentation

boolean JTreeTable::ListToTreeSelectionModelWrapper::updatingListSelectionModel [protected]
 

Set to true when we are updating the ListSelectionModel.

Definition at line 172 of file JTreeTable.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:18:07 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001