JIDE 3.5.15

com.jidesoft.tree
Class TreeSelectionModelGroup

java.lang.Object
  extended by com.jidesoft.swing.SelectionModelGroup<TreeSelectionModel,TreeSelectionListener>
      extended by com.jidesoft.tree.TreeSelectionModelGroup
All Implemented Interfaces:
Serializable

public class TreeSelectionModelGroup
extends SelectionModelGroup<TreeSelectionModel,TreeSelectionListener>
implements Serializable

This class is used to create a multiple-exclusion scope for a set of TreeSelectionModel so that one TreeSelectionModel can have selected index at a time.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.swing.SelectionModelGroup
_models, _selectionListener
 
Constructor Summary
TreeSelectionModelGroup()
          Creates a new ListSelectionModelGroup.
 
Method Summary
protected  void addSelectionListener(TreeSelectionModel model, TreeSelectionListener listener)
           
protected  TreeSelectionListener createSelectionListener()
           
 TreeSelectionModel[] getListModels()
          Returns all the TreeSelectionModel that are participating in this group.
protected  void removeSelectionListener(TreeSelectionModel model, TreeSelectionListener listener)
           
 
Methods inherited from class com.jidesoft.swing.SelectionModelGroup
add, add, getElements, getModelCount, getModels, remove, removeAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeSelectionModelGroup

public TreeSelectionModelGroup()
Creates a new ListSelectionModelGroup.

Method Detail

createSelectionListener

protected TreeSelectionListener createSelectionListener()
Specified by:
createSelectionListener in class SelectionModelGroup<TreeSelectionModel,TreeSelectionListener>

addSelectionListener

protected void addSelectionListener(TreeSelectionModel model,
                                    TreeSelectionListener listener)
Specified by:
addSelectionListener in class SelectionModelGroup<TreeSelectionModel,TreeSelectionListener>

removeSelectionListener

protected void removeSelectionListener(TreeSelectionModel model,
                                       TreeSelectionListener listener)
Specified by:
removeSelectionListener in class SelectionModelGroup<TreeSelectionModel,TreeSelectionListener>

getListModels

public TreeSelectionModel[] getListModels()
Returns all the TreeSelectionModel that are participating in this group.

Returns:
an array of all TreeSelectionModels

JIDE 3.5.15