Serializable
public abstract class SelectionModelGroup<T,V> extends Object implements Serializable
Modifier and Type | Field | Description |
---|---|---|
protected List<T> |
_models |
|
protected V |
_selectionListener |
Constructor | Description |
---|---|
SelectionModelGroup() |
Creates a new
SelectionModelGroup . |
Modifier and Type | Method | 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.
|
void |
removeAll() |
Removes all T's 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 void removeAll()
public List<T> getModels()
public int getModelCount()