Interface BrowserMessageListener
- All Known Implementing Classes:
AbstractBrowserMessageListener
,ConfigListener
,DisplayListener
,MetaSearchListener
,TorrentListener
,VuzeListener
public interface BrowserMessageListener
Accepts and handles messages dispatched from
BrowserMessageDispatcher
.
Subclasses should use the message's operation ID and parameters to perform
the requested operation.-
Method Summary
Modifier and TypeMethodDescriptionReturns the context for this listener.getId()
Returns the unique ID for this listener.void
handleMessage
(BrowserMessage message) Handles the given message, usually by parsing the parameters and calling the appropriate operation.void
setContext
(ClientMessageContext context) Sets the context for this listener.
-
Method Details
-
getContext
ClientMessageContext getContext()Returns the context for this listener.- Returns:
- listener's context
-
getId
String getId()Returns the unique ID for this listener.- Returns:
- listener's unique ID
-
handleMessage
Handles the given message, usually by parsing the parameters and calling the appropriate operation.- Parameters:
message
- holds all message information
-
setContext
Sets the context for this listener. Called by its dispatcher when attached.- Parameters:
context
- the new context for this listener
-