|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.grid.MixedTableSelectionModelGroup
public class MixedTableSelectionModelGroup
This class is used to create a multiple-exclusion scope for a set of Table's selectionModel so that only one table can have selected index at a time.
To use this class, you just need to add the TableSelectionModel of the non-contiguous JideTable or ListSelectionModel of JTable depends on its current selection model to the group by callingadd(Object). To remove from the
group, call remove(Object).
| Field Summary | |
|---|---|
protected ListSelectionListener |
_listSelectionListener
|
protected List |
_models
|
protected TableSelectionListener |
_tableSelectionListener
|
| Constructor Summary | |
|---|---|
MixedTableSelectionModelGroup()
Creates a new MixedTableSelectionModelGroup. |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object model)
Adds the TableSelectionModel or ListSelectionModel to the group. |
void |
add(Object model)
Adds the TableSelectionModel or ListSelectionModel to the group. |
Enumeration |
getElements()
Returns all the TableSelectionModels or ListSelectionModels that are participating in this group. |
int |
getModelCount()
Returns the number of selectionModels in the group. |
Object |
getStayModel()
Get the stay model which will not clear selection on other model's selection change. |
Object[] |
getTableModels()
Returns all the TableSelectionModels or ListSelectionModels that are participating in this group. |
void |
remove(Object model)
Removes the TableSelectionModel or ListSelectionModel from the group. |
void |
setStayModel(Object stayModel)
Set the stay model which will not clear selection on other model's selection change. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List _models
protected TableSelectionListener _tableSelectionListener
protected ListSelectionListener _listSelectionListener
| Constructor Detail |
|---|
public MixedTableSelectionModelGroup()
MixedTableSelectionModelGroup.
| Method Detail |
|---|
public void add(Object model)
model - the TableSelectionModel or ListSelectionModel to be added
public void add(int index,
Object model)
index - the positionmodel - the TableSelectionModel or ListSelectionModel to be addedpublic void remove(Object model)
model - the TableSelectionModel or ListSelectionModel to be removedpublic Object[] getTableModels()
public Enumeration getElements()
Enumeration of the selection models in this grouppublic int getModelCount()
public Object getStayModel()
public void setStayModel(Object stayModel)
stayModel - the stay modelgetStayModel()
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||