public abstract class SelectionModelGroup<T,V>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<T> |
_models |
protected V |
_selectionListener |
Constructor and Description |
---|
SelectionModelGroup()
Creates a new
SelectionModelGroup . |
Modifier and Type | Method and Description |
---|---|
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() |
java.util.List<T> |
getElements()
Gets the registered models.
|
int |
getModelCount()
Returns the number of T in the group.
|
java.util.List<T> |
getModels()
Returns all the T that are participating in this group.
|
void |
remove(T model)
Removes the T from the group.
|
protected abstract void |
removeSelectionListener(T model,
V listener) |
protected java.util.List<T> _models
protected V _selectionListener
public SelectionModelGroup()
SelectionModelGroup
.protected abstract V createSelectionListener()
public void add(T model)
model
- the ListSelectionModel to be addedpublic void add(int index, T model)
model
- the ListSelectionModel to be addedindex
- the indexpublic void remove(T model)
model
- the T to be removedpublic java.util.List<T> getElements()
public java.util.List<T> getModels()
public int getModelCount()