|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectDelegateProgressListener
SubProgressListener
public class SubProgressListener
A sub progress monitor, used to delegate a portion of work to a separate process.
Example:
if( progress == null ) progress = new NullProgressListener();
progress.started();
progress.setDecsription("Connect");
..connect to data store and obtain feature collection...
progress.progress( 20 ); // connecting represents 20% of the work
progress.setDescription("Process features");
featureCollection.accepts( visitor, new SubProgress( progress, 80 ) );
progress.completed();
| Field Summary |
|---|
| Fields inherited from class DelegateProgressListener |
|---|
delegate |
| Constructor Summary | |
|---|---|
SubProgressListener(ProgressListener progress,
float amount)
Create a sub progress monitor, used to delegate work to a separate process. |
|
| Method Summary | |
|---|---|
void |
complete()
Notifies this listener that the operation has finished. |
float |
getProgress()
Returns the current progress as a percent completed. |
void |
progress(float progress)
Notifies this listener of progress in the lengthly operation. |
void |
started()
Notifies this listener that the operation begins. |
| Methods inherited from class DelegateProgressListener |
|---|
dispose, exceptionOccurred, getDescription, getTask, isCanceled, setCanceled, setDescription, setTask, warningOccurred |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubProgressListener(ProgressListener progress,
float amount)
progress - parent progress to notify as we get work doneamount - amount of progress represented| Method Detail |
|---|
public void started()
ProgressListener
started in interface ProgressListenerstarted in class DelegateProgressListenerpublic void complete()
ProgressListener
complete in interface ProgressListenercomplete in class DelegateProgressListenerpublic float getProgress()
ProgressListener
getProgress in interface ProgressListenergetProgress in class DelegateProgressListenerpublic void progress(float progress)
ProgressListener
progress in interface ProgressListenerprogress in class DelegateProgressListenerprogress - The progress as a value between 0 and 100 inclusive.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||