public class MessageTrackerHubConnector extends GuiHubConnector
Constructor and Description |
---|
MessageTrackerHubConnector(ClientProfile profile)
Constructs a hub connector with default message tracker GUI expiry times.
|
MessageTrackerHubConnector(ClientProfile profile,
int listRemoveDelay,
int tableRemoveDelay,
int tableMaxRows)
Constructs a hub connector with specified message tracker GUI
expiry times.
|
Modifier and Type | Method and Description |
---|---|
ListCellRenderer |
createClientListCellRenderer()
Returns a list cell renderer suitable for use with the
client list model returned by
GuiHubConnector.getClientListModel() . |
protected HubConnection |
createConnection()
Invoked by this class to create a hub connection.
|
JComponent |
createMessageBox(int iconSize)
Returns a component which displays messages currently being
sent/received by this connector.
|
static JComponent |
createMessageBox(int iconSize,
ListModel rxListModel,
ListModel txListModel)
Returns a component which displays messages in receiver and/or sender
list models.
|
JComponent |
createMonitorPanel()
Returns a new component which displays status for this connector.
|
ListModel |
getRxListModel()
Returns a ListModel representing the pending messages received using
this connector.
|
ListModel |
getRxListModel(Client client)
Returns a list model containing messages received by a given client.
|
ListModel |
getTxListModel()
Returns a ListModel representing the pending messages sent using
this connector.
|
ListModel |
getTxListModel(Client client)
Returns a list model containing messages sent by a given client.
|
addConnectionListener, connectionChanged, createClientBox, createConnectionIndicator, createConnectionIndicator, createHubAction, createRegisterAction, createRegisterOrHubAction, createShowMonitorAction, createToggleRegisterAction, createUnregisterAction, getClientListModel, removeConnectionListener
addMessageHandler, addResponseHandler, call, callAll, callAndWait, computeSubscriptions, configureConnection, createTag, declareMetadata, declareSubscriptions, disconnect, getClientMap, getClientSet, getConnection, getMetadata, getSubscriptions, isActive, isConnected, removeMessageHandler, removeResponseHandler, setActive, setAutoconnect
public MessageTrackerHubConnector(ClientProfile profile)
profile
- profile implementationpublic MessageTrackerHubConnector(ClientProfile profile, int listRemoveDelay, int tableRemoveDelay, int tableMaxRows)
profile
- profile implementationlistRemoveDelay
- expiry delay for summary icons in client
list displaytableRemoveDelay
- expiry delay for rows in message
table displaytableMaxRows
- maximum number of rows in message table
(beyond this limit resolved messages may be
removed early)public ListModel getTxListModel()
Transmission
objects.public ListModel getRxListModel()
Transmission
objects.public ListModel getTxListModel(Client client)
Transmission
objectspublic ListModel getRxListModel(Client client)
Transmission
objectspublic JComponent createMessageBox(int iconSize)
public static JComponent createMessageBox(int iconSize, ListModel rxListModel, ListModel txListModel)
iconSize
- height of iconsrxListModel
- list model containing received
Transmission
objectstxListModel
- list model containing sent
Transmission
objectspublic ListCellRenderer createClientListCellRenderer()
GuiHubConnector
GuiHubConnector.getClientListModel()
.createClientListCellRenderer
in class GuiHubConnector
public JComponent createMonitorPanel()
GuiHubConnector
createMonitorPanel
in class GuiHubConnector
protected HubConnection createConnection() throws SampException
HubConnector
profile.register()
.createConnection
in class HubConnector
SampException
Copyright © 2008–2024. All rights reserved.