|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.swing.SelectionModelGroup<T,V>
public abstract class SelectionModelGroup<T,V>
This class is used to create a multiple-exclusion scope for a set of any selection model so that one selection model can have selected index at a time.
| Field Summary | |
|---|---|
protected List<T> |
_models
|
protected V |
_selectionListener
|
| Constructor Summary | |
|---|---|
SelectionModelGroup()
Creates a new SelectionModelGroup. |
|
| Method Summary | |
|---|---|
void |
add(int index,
T model)
Adds the ListSelectionModel to the group. |
void |
add(T model)
Adds the ListSelectionModel to the group. |
protected abstract void |
addSelectionListener(T model,
V listener)
|
protected abstract V |
createSelectionListener()
|
List<T> |
getElements()
Gets the registered models. |
int |
getModelCount()
Returns the number of T in the group. |
List<T> |
getModels()
Returns all the T that are participating in this group. |
void |
remove(T model)
Removes the T from the group. |
void |
removeAll()
Removes all T's from the group. |
protected abstract void |
removeSelectionListener(T model,
V listener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<T> _models
protected V _selectionListener
| Constructor Detail |
|---|
public SelectionModelGroup()
SelectionModelGroup.
| Method Detail |
|---|
protected abstract V createSelectionListener()
protected abstract void addSelectionListener(T model,
V listener)
protected abstract void removeSelectionListener(T model,
V listener)
public void add(T model)
model - the ListSelectionModel to be added
public void add(int index,
T model)
model - the ListSelectionModel to be addedindex - the indexpublic void remove(T model)
model - the T to be removedpublic void removeAll()
public List<T> getElements()
public List<T> getModels()
public int getModelCount()
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||