|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.gui.io.AbstractIOTask
public abstract class AbstractIOTask
This is an abstract task for uploading or saving a data layer.
| Field Summary | |
|---|---|
private boolean |
canceled
indicates whether the task has been canceled |
private boolean |
failed
indicates whether the task has been failed |
private java.lang.Exception |
lastException
the last exception caught |
| Constructor Summary | |
|---|---|
AbstractIOTask()
|
|
| Method Summary | |
|---|---|
abstract void |
cancel()
Cancel the task |
java.lang.Exception |
getLastException()
Replies the last exception caught |
boolean |
isCanceled()
Replies true if the task has been canceled |
boolean |
isFailed()
Replies true if the task has been failed |
boolean |
isSuccessful()
Replies true if this task was successful, i.e. |
abstract void |
run()
Runs the task |
protected void |
setCanceled(boolean canceled)
Set whether this task has been canceled |
protected void |
setFailed(boolean failed)
Sets whether the task has been failed |
protected void |
setLastException(java.lang.Exception lastException)
Sets the last exception caught |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean canceled
private boolean failed
private java.lang.Exception lastException
| Constructor Detail |
|---|
public AbstractIOTask()
| Method Detail |
|---|
public boolean isCanceled()
protected void setCanceled(boolean canceled)
canceled - true, if the task has been canceled; false otherwisepublic boolean isFailed()
protected void setFailed(boolean failed)
failed - whether the task has been failedpublic java.lang.Exception getLastException()
protected void setLastException(java.lang.Exception lastException)
lastException - the last exceptionpublic boolean isSuccessful()
public abstract void run()
run in interface java.lang.Runnablepublic abstract void cancel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||