public abstract class SelectionModelGroup<T,V> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected 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() |
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.
|
protected abstract void |
removeSelectionListener(T model,
V listener) |
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 List<T> getModels()
public int getModelCount()