com.aelitis.azureus.ui.swt.browser.listener
Class TorrentListener

java.lang.Object
  extended by com.aelitis.azureus.core.messenger.browser.listeners.AbstractBrowserMessageListener
      extended by com.aelitis.azureus.ui.swt.browser.listener.TorrentListener
All Implemented Interfaces:
BrowserMessageListener

public class TorrentListener
extends AbstractBrowserMessageListener


Field Summary
static String DEFAULT_LISTENER_ID
           
static String OP_LOAD_TORRENT
           
static String OP_LOAD_TORRENT_OLD
           
 
Fields inherited from class com.aelitis.azureus.core.messenger.browser.listeners.AbstractBrowserMessageListener
context
 
Constructor Summary
TorrentListener()
           
TorrentListener(String id)
           
 
Method Summary
 void handleMessage(BrowserMessage message)
          Handles the given message, usually by parsing the parameters and calling the appropriate operation.
static boolean loadTorrentByB64(AzureusCore core, String b64)
           
 void setShell(org.eclipse.swt.widgets.Shell shell)
           
 void setTorrentURLHandler(ClientMessageContext.torrentURLHandler handler)
           
 
Methods inherited from class com.aelitis.azureus.core.messenger.browser.listeners.AbstractBrowserMessageListener
debug, debug, getContext, getId, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LISTENER_ID

public static final String DEFAULT_LISTENER_ID
See Also:
Constant Field Values

OP_LOAD_TORRENT_OLD

public static final String OP_LOAD_TORRENT_OLD
See Also:
Constant Field Values

OP_LOAD_TORRENT

public static final String OP_LOAD_TORRENT
See Also:
Constant Field Values
Constructor Detail

TorrentListener

public TorrentListener(String id)

TorrentListener

public TorrentListener()
Method Detail

setTorrentURLHandler

public void setTorrentURLHandler(ClientMessageContext.torrentURLHandler handler)

setShell

public void setShell(org.eclipse.swt.widgets.Shell shell)

handleMessage

public void handleMessage(BrowserMessage message)
Description copied from class: AbstractBrowserMessageListener
Handles the given message, usually by parsing the parameters and calling the appropriate operation.

Specified by:
handleMessage in interface BrowserMessageListener
Specified by:
handleMessage in class AbstractBrowserMessageListener
Parameters:
message - holds all message information

loadTorrentByB64

public static boolean loadTorrentByB64(AzureusCore core,
                                       String b64)