Re: Help to implement OperationListener interface.
- From: Manish Pandit <pandit.manish@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 18:04:33 -0000
On Oct 30, 10:54 am, mike <mikaelpetter...@xxxxxxxxxxx> wrote:
Hi,
I have the following interface OperationListener interface ( it's for
an open source project I helping out with). Well the idea behind the
interface is to monitor operations taking place simlair to the
eclipse IProgressMonitor.
Then I have an operation like:
myApp.operationDel( file, operationListener);
I don't know how to implement the interface.
Any ideas ?
If I understood the problem statement correctly, I do not think you
have to implement the interface - you will need to call the interface
methods as you progress through the operationDel. The *caller* will
give you an implementation of this interface, which you will use as a
callback to notify the caller of various events, and the caller (I
suppose) will use this information to render a progressbar, or report
status via messages, etc.
For example, you will invoke operationListener.startedOperation(100);
where 100 is the % remaining. At the end, you will invoke
operationListener.finishedOperation().
Hope this helps!
-cheers,
Manish
.
- Follow-Ups:
- References:
- Prev by Date: Re: [OT]
- Next by Date: Re: textpad
- Previous by thread: Help to implement OperationListener interface.
- Next by thread: Re: Help to implement OperationListener interface.
- Index(es):
Relevant Pages
|
|