Re: Help to implement OperationListener interface.
- From: Manish Pandit <pandit.manish@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 11:47:44 -0700
On Oct 30, 11:18 am, mike <mikaelpetter...@xxxxxxxxxxx> wrote:
Ok!
I am calling the interface as my task, operationDel, makes progress or
isCanceled.
Shall the class where I have my call:
myApp.operationDel( file, operationListener);
implement the interface. Seems like I cannot figure out how the
callback is working!
Or am I missing something here?
Either the caller, or any other class can implement this interface.
Whoever implements it needs to be passed to the method call. The
interface methods wil be called by the method call at various points,
and the implementation will receive these callbacks (it is also called
a hook), and can use that to perform any operation. For now, you can
log a message or do a System.out.println() to understand the flow and
the callback mechanism, later you can tie it to more complex solution,
like rendering a progressbar or something similar.
-cheers,
Manish
.
- Follow-Ups:
- References:
- Help to implement OperationListener interface.
- From: mike
- Re: Help to implement OperationListener interface.
- From: Manish Pandit
- Re: Help to implement OperationListener interface.
- From: mike
- Help to implement OperationListener interface.
- Prev by Date: Re: textpad
- Next by Date: Re: Rounding Issue
- Previous by thread: Re: Help to implement OperationListener interface.
- Next by thread: Re: Help to implement OperationListener interface.
- Index(es):
Relevant Pages
|
|