|
||||||||||
| 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
org.astrogrid.samp.gui.SubscribedClientListModel
public class SubscribedClientListModel
Selective client list model which contains only those non-self clients which are subscribed to one or more of a given list of MTypes.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SubscribedClientListModel(GuiHubConnector connector,
String mtype)
Constructor for single MType. |
|
SubscribedClientListModel(GuiHubConnector connector,
String[] mtypes)
Constructor for multiple MTypes. |
|
| Method Summary | |
|---|---|
String[] |
getMTypes()
Returns the list of MTypes which defines the elements of this list. |
protected boolean |
isIncluded(Client client)
Returns true if client is subscribed to one of this
model's MTypes. |
void |
setMTypes(String[] mtypes)
Sets the list of MTypes which defines the elements of this list. |
| Methods inherited from class org.astrogrid.samp.gui.SelectiveClientListModel |
|---|
dispose, getElementAt, getSize, init, refresh |
| 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 SubscribedClientListModel(GuiHubConnector connector,
String[] mtypes)
connector - hub connectormtypes - mtypes of interest (may have wildcards)
public SubscribedClientListModel(GuiHubConnector connector,
String mtype)
connector - hub connectormtype - mtype of interest (may have wildcards)| Method Detail |
|---|
public void setMTypes(String[] mtypes)
mtypes - new MType listpublic String[] getMTypes()
protected boolean isIncluded(Client client)
client is subscribed to one of this
model's MTypes.
isIncluded in class SelectiveClientListModelclient - client for consideration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||