com.blackledge.david.tivo.multitasker
Class MultiTaskerApplication.CallbackChain

java.lang.Object
  extended by com.blackledge.david.tivo.multitasker.MultiTaskerApplication.CallbackChain
All Implemented Interfaces:
MultiTaskerApplication.ICallback
Enclosing class:
MultiTaskerApplication

public class MultiTaskerApplication.CallbackChain
extends Object
implements MultiTaskerApplication.ICallback

Callback class to chain two callbacks together - when this callback is invoked, first it schedules the next callback, then it runs the primary callback.

Version:
$Revision: 1.6 $

Constructor Summary
MultiTaskerApplication.CallbackChain(MultiTaskerApplication.ICallback firstCallback, MultiTaskerApplication appForNextCallback, MultiTaskerApplication.ICallback nextCallback, com.tivo.hme.sdk.Resource nextCallbackAnimation)
           
 
Method Summary
 boolean call()
          schedules appforNextCallback to run nextCallback at nextCallbackAnimation, then invokes firstCallback.call()
 MultiTaskerApplication.ICallback getFirstCallback()
           
 MultiTaskerApplication.ICallback getNextCallback()
           
 com.tivo.hme.sdk.Resource getNextCallbackAnimation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTaskerApplication.CallbackChain

public MultiTaskerApplication.CallbackChain(MultiTaskerApplication.ICallback firstCallback,
                                            MultiTaskerApplication appForNextCallback,
                                            MultiTaskerApplication.ICallback nextCallback,
                                            com.tivo.hme.sdk.Resource nextCallbackAnimation)
Parameters:
firstCallback - the callback to run "immediately"
appForNextCallback - the application reference to schedule the next callback against
nextCallback - the callback to run "next"
nextCallbackAnimation - when to schedule the next callback after this one.
Method Detail

call

public boolean call()
schedules appforNextCallback to run nextCallback at nextCallbackAnimation, then invokes firstCallback.call()

Specified by:
call in interface MultiTaskerApplication.ICallback

getFirstCallback

public MultiTaskerApplication.ICallback getFirstCallback()

getNextCallback

public MultiTaskerApplication.ICallback getNextCallback()

getNextCallbackAnimation

public com.tivo.hme.sdk.Resource getNextCallbackAnimation()