Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

treetable::TTreeSelectionModel Class Reference

Inheritance diagram for treetable::TTreeSelectionModel:

List of all members.

Public Methods

 TTreeSelectionModel (TTree tTREE)
 Builds a new instance.

void resetRowSelection ()
ListSelectionModel getListSelectionModel ()

Protected Methods

void updateSelectedPathsFromSelectedRows ()
ListSelectionListener createListSelectionListener ()

Protected Attributes

boolean gIsUpdatingListSelectionModel
 True when it is updating the ListSelectionModel.

TTree tTree
 The tree.


Detailed Description

This class 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 81 of file TTreeSelectionModel.java.


Member Function Documentation

ListSelectionListener treetable::TTreeSelectionModel::createListSelectionListener   [inline, protected]
 

Creates and returns an instance of TListSelectionListener.

Returns:
A new TListSelectionListener.

Definition at line 203 of file TTreeSelectionModel.java.

Referenced by treetable::TTreeSelectionModel::TTreeSelectionModel().

ListSelectionModel treetable::TTreeSelectionModel::getListSelectionModel   [inline]
 

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

Returns:
The list selection model.

Definition at line 219 of file TTreeSelectionModel.java.

Referenced by treetable::TTreeSelectionModel::TTreeSelectionModel().

void treetable::TTreeSelectionModel::resetRowSelection   [inline]
 

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

Definition at line 125 of file TTreeSelectionModel.java.

References treetable::TTreeSelectionModel::gIsUpdatingListSelectionModel.

void treetable::TTreeSelectionModel::updateSelectedPathsFromSelectedRows   [inline, protected]
 

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

Definition at line 153 of file TTreeSelectionModel.java.

References treetable::TTreeSelectionModel::gIsUpdatingListSelectionModel.

Referenced by treetable::TListSelectionListener::valueChanged().


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:27 2003 for MPCL by doxygen1.2.18