kaos.robots.util
Class CallbackListener

java.lang.Object
  extended by kaos.robots.util.CallbackListener
All Implemented Interfaces:
ICallbackListener

public class CallbackListener
extends java.lang.Object
implements ICallbackListener


Constructor Summary
CallbackListener(java.lang.String action, javax.swing.JButton btn)
           
 
Method Summary
 java.lang.Object getResult()
           
 void onAborted(java.util.Calendar time, Reason r)
           
 void onAccepted(java.util.Calendar time)
           
 void onCompleted(java.util.Calendar time, java.lang.Object result)
           
 void onRefused(java.util.Calendar time, Reason r)
           
 void onStarted(java.util.Calendar time)
           
 void reset()
           
 void setResult(java.lang.Object result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallbackListener

public CallbackListener(java.lang.String action,
                        javax.swing.JButton btn)
Method Detail

onAccepted

public void onAccepted(java.util.Calendar time)
Specified by:
onAccepted in interface ICallbackListener

onRefused

public void onRefused(java.util.Calendar time,
                      Reason r)
Specified by:
onRefused in interface ICallbackListener

onStarted

public void onStarted(java.util.Calendar time)
Specified by:
onStarted in interface ICallbackListener

onCompleted

public void onCompleted(java.util.Calendar time,
                        java.lang.Object result)
Specified by:
onCompleted in interface ICallbackListener

onAborted

public void onAborted(java.util.Calendar time,
                      Reason r)
Specified by:
onAborted in interface ICallbackListener

reset

public void reset()
Specified by:
reset in interface ICallbackListener

setResult

public void setResult(java.lang.Object result)

getResult

public java.lang.Object getResult()