net.sf.j2s.ajax
Class XHRCallbackSWTAdapter

java.lang.Object
  extended bynet.sf.j2s.ajax.XHRCallbackSWTAdapter
All Implemented Interfaces:
IXHRCallback

public class XHRCallbackSWTAdapter
extends java.lang.Object
implements IXHRCallback

This adapter class provides a default implementation of IXHRCallback. This adapter class wraps current thread scope for those swtOnXXXX method.

Author:
josson smith 2006-2-11

Constructor Summary
XHRCallbackSWTAdapter()
           
 
Method Summary
 void onComplete()
          Call #swtOnComplete when all responses are received.
 void onInteractive()
          Call #swtOnInteractive when the request is sending and the reponse comes.
 void onLoaded()
          Call #swtOnLoaded when the HTTP connection is setup.
 void onLoading()
          Call #swtOnLoading when HttPRequest#open is called.
 void swtOnComplete()
          Method will be called when XMLHttpRequest receives all reponses.
 void swtOnInteractive()
          Method will be called when XMLHttpRequest is transforming request and receiving response.
 void swtOnLoaded()
          Method will be called when XMLHttpRequest already setup HTTP connection.
 void swtOnLoading()
          Method will be called when XMLHttpRequest is loading.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHRCallbackSWTAdapter

public XHRCallbackSWTAdapter()
Method Detail

swtOnComplete

public void swtOnComplete()
Method will be called when XMLHttpRequest receives all reponses.


swtOnInteractive

public void swtOnInteractive()
Method will be called when XMLHttpRequest is transforming request and receiving response.


swtOnLoaded

public void swtOnLoaded()
Method will be called when XMLHttpRequest already setup HTTP connection.


swtOnLoading

public void swtOnLoading()
Method will be called when XMLHttpRequest is loading.


onComplete

public void onComplete()
Call #swtOnComplete when all responses are received.

Specified by:
onComplete in interface IXHRCallback

onInteractive

public void onInteractive()
Call #swtOnInteractive when the request is sending and the reponse comes.

Specified by:
onInteractive in interface IXHRCallback

onLoaded

public void onLoaded()
Call #swtOnLoaded when the HTTP connection is setup.

Specified by:
onLoaded in interface IXHRCallback

onLoading

public void onLoading()
Call #swtOnLoading when HttPRequest#open is called.

Specified by:
onLoading in interface IXHRCallback