|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectDelegateProgressListener
public class DelegateProgressListener
| Field Summary | |
|---|---|
protected ProgressListener |
delegate
|
| Constructor Summary | |
|---|---|
DelegateProgressListener(ProgressListener progress)
|
|
| Method Summary | |
|---|---|
void |
complete()
Notifies this listener that the operation has finished. |
void |
dispose()
Releases any resources used by this listener. |
void |
exceptionOccurred(Throwable exception)
Reports an exception. |
String |
getDescription()
Description for the lengthly operation to be reported, or null if none. |
float |
getProgress()
Returns the current progress as a percent completed. |
InternationalString |
getTask()
Returns the description of the current task being performed, or null if none. |
boolean |
isCanceled()
Returns true if this job is cancelled. |
void |
progress(float progress)
Notifies this listener of progress in the lengthly operation. |
void |
setCanceled(boolean cancel)
Indicates that task should be cancelled. |
void |
setDescription(String description)
Sets the description for the lenghtly operation to be reported. |
void |
setTask(InternationalString task)
Sets the description of the current task being performed. |
void |
started()
Notifies this listener that the operation begins. |
void |
warningOccurred(String source,
String location,
String warning)
Reports a warning. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ProgressListener delegate
| Constructor Detail |
|---|
public DelegateProgressListener(ProgressListener progress)
| Method Detail |
|---|
public void started()
ProgressListener
started in interface ProgressListenerpublic void complete()
ProgressListener
complete in interface ProgressListenerpublic void dispose()
ProgressListener
dispose in interface ProgressListenerpublic void exceptionOccurred(Throwable exception)
ProgressListener
exceptionOccurred in interface ProgressListenerexception - The exception to report.public String getDescription()
ProgressListenernull if none.
getDescription in interface ProgressListenerpublic InternationalString getTask()
ProgressListenernull if none.
It is assumed that if the task is null applications may simply report that the
process is "in progress" or "working" as represented in the current locale.
getTask in interface ProgressListenernull if none.public boolean isCanceled()
ProgressListenertrue if this job is cancelled.
isCanceled in interface ProgressListenertrue if this job is cancelled.public void progress(float progress)
ProgressListener
progress in interface ProgressListenerprogress - The progress as a value between 0 and 100 inclusive.public float getProgress()
ProgressListener
getProgress in interface ProgressListenerpublic void setCanceled(boolean cancel)
ProgressListener
setCanceled in interface ProgressListenercancel - true for cancelling the task.public void setDescription(String description)
ProgressListener
setDescription in interface ProgressListenerdescription - The new description, or null if none.public void setTask(InternationalString task)
ProgressListener
setTask in interface ProgressListenertask - Description of the task being performed, or null if none.
public void warningOccurred(String source,
String location,
String warning)
ProgressListener
warningOccurred in interface ProgressListenersource - Name of the warning source, or null if none. This is typically the
filename in process of being parsed or the URL of the data being processedlocation - Text to write on the left side of the warning message, or null if none.
This is typically the line number where the error occured in the source
file or the feature ID of the feature that produced the messagewarning - The warning message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||