|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
org.astrogrid.samp.gui.SelectiveClientListModel
public abstract class SelectiveClientListModel
ListModel implementation which sits on top of an existing ListModel
containing Clients, but only includes a
subset of its elements.
Concrete subclasses must
isIncluded(org.astrogrid.samp.Client) method to determine which clients
from the base list appear in this oneinit() before the class is used
(for instance in their constructor)
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SelectiveClientListModel(ListModel clientListModel)
Constructor. |
|
| Method Summary | |
|---|---|
void |
dispose()
Releases any resources associated with this transmitter. |
Object |
getElementAt(int index)
|
int |
getSize()
|
protected void |
init()
Must be called by subclass prior to use. |
protected abstract boolean |
isIncluded(Client client)
Implement this method to determine which clients are included in this list. |
protected void |
refresh()
Recalculates the inclusions. |
| Methods inherited from class javax.swing.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectiveClientListModel(ListModel clientListModel)
clientListModel - base ListModel containing
Client objects| Method Detail |
|---|
protected abstract boolean isIncluded(Client client)
client - client for consideration
protected void init()
protected void refresh()
isIncluded(org.astrogrid.samp.Client) might have changed for some of the
elements.
public int getSize()
public Object getElementAt(int index)
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||