FileDocCategorySizeDatePackage
ClientMessageContext.javaAPI DocAzureus 3.0.3.44304Mon Jun 04 17:50:14 BST 2007com.aelitis.azureus.core.messenger

ClientMessageContext

public interface ClientMessageContext
author
TuxPaper
created
Oct 9, 2006

Fields Summary
Constructors Summary
Methods Summary
public abstract voidaddMessageListener(com.aelitis.azureus.ui.swt.browser.msg.MessageListener listener)

public abstract com.aelitis.azureus.ui.swt.browser.txn.TransactioncancelTransaction(java.lang.String type)

public abstract voiddebug(java.lang.String message)
Displays a debug message tagged with the context ID.

param
message sent to the debug log

public abstract voiddebug(java.lang.String message, java.lang.Throwable t)
Displays a debug message and exception tagged with the context ID.

param
message sent to the debug log
param
t exception to log with message

public abstract voidderegisterBrowser()
Detaches everything from this context's browser.

public abstract booleanexecuteInBrowser(java.lang.String javascript)

public abstract java.lang.ObjectgetBrowserData(java.lang.String key)

public com.aelitis.azureus.ui.swt.browser.msg.MessageDispatchergetMessageDispatcher()

public abstract com.aelitis.azureus.ui.swt.browser.txn.TransactiongetTransaction(java.lang.String type)

public abstract com.aelitis.azureus.ui.swt.browser.txn.TransactionManagergetTransactionManager()

public abstract voidhandleMessage(com.aelitis.azureus.ui.swt.browser.msg.BrowserMessage message)
Handles operations intended for the context.

param
message holds all message information

public abstract voidregisterBrowser(org.eclipse.swt.browser.Browser browser, org.eclipse.swt.widgets.Control widgetWaitingIndicator)
Attaches this context and its message dispatcher to the browser.

param
browser the browser to be attached
param
widgetWaitingIndicator Widget to be shown when browser is loading

public abstract voidregisterTransactionType(java.lang.String type, java.lang.Class clazz)

public abstract voidremoveMessageListener(java.lang.String listenerId)

public abstract voidremoveMessageListener(com.aelitis.azureus.ui.swt.browser.msg.MessageListener listener)

public abstract booleansendBrowserMessage(java.lang.String key, java.lang.String op)
Sends a message to the JavaScript message dispatcher in the page.

param
key identifies the listener to receive the message
param
op identifies the operation to perform

public abstract booleansendBrowserMessage(java.lang.String key, java.lang.String op, java.util.Map params)
Sends a message to the JavaScript message dispatcher in the page.

param
key identifies the listener to receive the message
param
op identifies the operation to perform
param
params optional message parameters

public booleansendBrowserMessage(java.lang.String key, java.lang.String op, java.util.Collection params)

param
key
param
op
param
params
return
since
3.0.1.5

public abstract voidsetBrowserData(java.lang.String key, java.lang.Object value)

public abstract com.aelitis.azureus.ui.swt.browser.txn.TransactionstartTransaction(java.lang.String type)

public abstract voidwidgetDisposed(org.eclipse.swt.events.DisposeEvent event)
Deregisters the browser before it's disposed.

param
event used to verify it's the correct context
see
org.eclipse.swt.events.DisposeListener#widgetDisposed(org.eclipse.swt.events.DisposeEvent)