Interface BrowserMessageListener
-
- All Known Implementing Classes:
AbstractBrowserMessageListener
,ConfigListener
,DisplayListener
,MetaSearchListener
,TorrentListener
,VuzeListener
public interface BrowserMessageListener
Accepts and handles messages dispatched fromBrowserMessageDispatcher
. Subclasses should use the message's operation ID and parameters to perform the requested operation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClientMessageContext
getContext()
Returns the context for this listener.java.lang.String
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 Detail
-
getContext
ClientMessageContext getContext()
Returns the context for this listener.- Returns:
- listener's context
-
getId
java.lang.String getId()
Returns the unique ID for this listener.- Returns:
- listener's unique ID
-
handleMessage
void handleMessage(BrowserMessage message)
Handles the given message, usually by parsing the parameters and calling the appropriate operation.- Parameters:
message
- holds all message information
-
setContext
void setContext(ClientMessageContext context)
Sets the context for this listener. Called by its dispatcher when attached.- Parameters:
context
- the new context for this listener
-
-