org.granite.client.tide.impl
Class ComponentListenerImpl<T>

java.lang.Object
  extended by org.granite.client.tide.impl.ComponentListenerImpl<T>
All Implemented Interfaces:
ResponseListener, ComponentListener<T>

public class ComponentListenerImpl<T>
extends Object
implements ComponentListener<T>

Author:
William DRAI

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.granite.client.tide.server.ComponentListener
ComponentListener.Handler<T>
 
Constructor Summary
ComponentListenerImpl(Context sourceContext, ComponentListener.Handler<T> handler, Component component, String operation, Object[] args, Object info, TideResponder<T> tideResponder)
           
 
Method Summary
 Object[] getArgs()
           
 Component getComponent()
           
 String getOperation()
           
 T getResult()
           
 Context getSourceContext()
           
 void onCancelled(CancelledEvent event)
           
 void onFailure(FailureEvent event)
           
 void onFault(FaultEvent event)
           
 void onResult(ResultEvent event)
           
 void onTimeout(TimeoutEvent event)
           
 void setArgs(Object[] args)
           
 void setResult(T result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentListenerImpl

public ComponentListenerImpl(Context sourceContext,
                             ComponentListener.Handler<T> handler,
                             Component component,
                             String operation,
                             Object[] args,
                             Object info,
                             TideResponder<T> tideResponder)
Method Detail

getOperation

public String getOperation()
Specified by:
getOperation in interface ComponentListener<T>

getArgs

public Object[] getArgs()
Specified by:
getArgs in interface ComponentListener<T>

setArgs

public void setArgs(Object[] args)
Specified by:
setArgs in interface ComponentListener<T>

getSourceContext

public Context getSourceContext()
Specified by:
getSourceContext in interface ComponentListener<T>

getComponent

public Component getComponent()
Specified by:
getComponent in interface ComponentListener<T>

getResult

public T getResult()
            throws InterruptedException,
                   ExecutionException
Specified by:
getResult in interface ComponentListener<T>
Throws:
InterruptedException
ExecutionException

setResult

public void setResult(T result)
Specified by:
setResult in interface ComponentListener<T>

onResult

public void onResult(ResultEvent event)
Specified by:
onResult in interface ResponseListener

onFault

public void onFault(FaultEvent event)
Specified by:
onFault in interface ResponseListener

onFailure

public void onFailure(FailureEvent event)
Specified by:
onFailure in interface ResponseListener

onTimeout

public void onTimeout(TimeoutEvent event)
Specified by:
onTimeout in interface ResponseListener

onCancelled

public void onCancelled(CancelledEvent event)
Specified by:
onCancelled in interface ResponseListener