com.blackledge.david.tivo.multitasker
Class MultiTaskerApplication.CallbackChain
java.lang.Object
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 againstnextCallback
- the callback to run "next"nextCallbackAnimation
- when to schedule the next callback after this one.
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()