public class SubscribedClientListModel extends SelectiveClientListModel
Modifier and Type | Field and Description |
---|---|
private GuiHubConnector |
connector_ |
private java.lang.String[] |
mtypes_ |
Constructor and Description |
---|
SubscribedClientListModel(GuiHubConnector connector,
java.lang.String mtype)
Constructor for single MType.
|
SubscribedClientListModel(GuiHubConnector connector,
java.lang.String[] mtypes)
Constructor for multiple MTypes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.lang.String[] mtypes)
Sets the list of MTypes which defines the elements of this list.
|
dispose, getElementAt, getSize, init, refresh
private final GuiHubConnector connector_
private java.lang.String[] mtypes_
public SubscribedClientListModel(GuiHubConnector connector, java.lang.String[] mtypes)
connector
- hub connectormtypes
- mtypes of interest (may have wildcards)public SubscribedClientListModel(GuiHubConnector connector, java.lang.String mtype)
connector
- hub connectormtype
- mtype of interest (may have wildcards)public void setMTypes(java.lang.String[] mtypes)
mtypes
- new MType listpublic java.lang.String[] getMTypes()
protected boolean isIncluded(Client client)
client
is subscribed to one of this
model's MTypes.isIncluded
in class SelectiveClientListModel
client
- client for consideration