org.granite.client.tide.impl
Class ComponentListenerImpl<T>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentListenerImpl
public ComponentListenerImpl(Context sourceContext,
ComponentListener.Handler<T> handler,
Component component,
String operation,
Object[] args,
Object info,
TideResponder<T> tideResponder)
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