public abstract class SelectiveClientListModel extends AbstractListModel
Client
s, 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)listenerList
Constructor and Description |
---|
SelectiveClientListModel(ListModel clientListModel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
protected abstract boolean isIncluded(Client client)
client
- client for considerationprotected 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()
Copyright © 2008–2024. All rights reserved.