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 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

      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