JIDE 3.5.15

com.jidesoft.grid
Class TableSelectionModelGroup

java.lang.Object
  extended by com.jidesoft.grid.TableSelectionModelGroup
All Implemented Interfaces:
Serializable

public class TableSelectionModelGroup
extends Object
implements Serializable

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

To use this class, you just need to add the TableSelectionModel of the non-contiguous JideTable to the group by calling add(TableSelectionModel). To remove from the group, call remove(TableSelectionModel).

See Also:
Serialized Form

Field Summary
protected  List<TableSelectionModel> _models
           
protected  TableSelectionListener _tableSelectionListener
           
 
Constructor Summary
TableSelectionModelGroup()
          Creates a new ButtonGroup.
 
Method Summary
 void add(int index, TableSelectionModel model)
          Adds the TableSelectionModel to the group.
 void add(TableSelectionModel model)
          Adds the TableSelectionModel to the group.
 Enumeration<TableSelectionModel> getElements()
          Returns all the TableSelectionModel that are participating in this group.
 int getModelCount()
          Returns the number of TableSelectionModel in the group.
 TableSelectionModel[] getTableModels()
          Returns all the TableSelectionModel that are participating in this group.
 void remove(TableSelectionModel model)
          Removes the TableSelectionModel from the group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_models

protected List<TableSelectionModel> _models

_tableSelectionListener

protected TableSelectionListener _tableSelectionListener
Constructor Detail

TableSelectionModelGroup

public TableSelectionModelGroup()
Creates a new ButtonGroup.

Method Detail

add

public void add(TableSelectionModel model)
Adds the TableSelectionModel to the group.

Parameters:
model - the TableSelectionModel to be added

add

public void add(int index,
                TableSelectionModel model)
Adds the TableSelectionModel to the group.

Parameters:
index - the position
model - the TableSelectionModel to be added

remove

public void remove(TableSelectionModel model)
Removes the TableSelectionModel from the group.

Parameters:
model - the TableSelectionModel to be removed

getTableModels

public TableSelectionModel[] getTableModels()
Returns all the TableSelectionModel that are participating in this group.

Returns:
an array of all TableSelectionModels

getElements

public Enumeration<TableSelectionModel> getElements()
Returns all the TableSelectionModel that are participating in this group.

Returns:
an Enumeration of the buttons in this group

getModelCount

public int getModelCount()
Returns the number of TableSelectionModel in the group.

Returns:
the TableSelectionModel count
Since:
1.3

JIDE 3.5.15