|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.PleaseWaitRunnable
org.openstreetmap.josm.gui.dialogs.changeset.query.ChangesetQueryTask
public class ChangesetQueryTask
Asynchronous task to send a changeset query to the OSM API.
Field Summary | |
---|---|
private boolean |
canceled
true if the task was canceled |
private OsmServerChangesetReader |
changesetReader
the reader object used to submit the changeset query to the API |
private java.util.Set<Changeset> |
downloadedChangesets
the set of downloaded changesets |
private java.lang.Exception |
lastException
the last exception remembered, if any |
private ChangesetQuery |
query
the changeset query |
private OsmServerUserInfoReader |
userInfoReader
the reader object used to read information about the current user from the API |
Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable |
---|
progressMonitor |
Constructor Summary | |
---|---|
ChangesetQueryTask(ChangesetQuery query)
Creates the task. |
|
ChangesetQueryTask(java.awt.Component parent,
ChangesetQuery query)
Creates the task. |
Method Summary | |
---|---|
protected void |
cancel()
User pressed cancel button. |
protected void |
finish()
Finish up the data work. |
protected void |
fullyIdentifyCurrentUser()
Tries to fully identify the current JOSM user |
java.util.Set<Changeset> |
getDownloadedChangesets()
|
boolean |
isCanceled()
|
boolean |
isFailed()
|
protected void |
realRun()
Called in the worker thread to do the actual work. |
Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable |
---|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Field Detail |
---|
private ChangesetQuery query
private boolean canceled
private java.util.Set<Changeset> downloadedChangesets
private java.lang.Exception lastException
private OsmServerUserInfoReader userInfoReader
private OsmServerChangesetReader changesetReader
Constructor Detail |
---|
public ChangesetQueryTask(ChangesetQuery query) throws java.lang.IllegalArgumentException
query
- the query to submit to the OSM server. Must not be null.
java.lang.IllegalArgumentException
- thrown if query is null.public ChangesetQueryTask(java.awt.Component parent, ChangesetQuery query) throws java.lang.IllegalArgumentException
parent
- the parent component relative to which the PleaseWaitDialog
is displayed.
Must not be null.query
- the query to submit to the OSM server. Must not be null.
java.lang.IllegalArgumentException
- thrown if query is null.
java.lang.IllegalArgumentException
- thrown if parent is nullMethod Detail |
---|
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void fullyIdentifyCurrentUser() throws OsmTransferException
OsmTransferException
- thrown if something went wrongprotected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
org.xml.sax.SAXException
java.io.IOException
OsmTransferException
public java.util.Set<Changeset> getDownloadedChangesets()
getDownloadedChangesets
in interface ChangesetDownloadTask
public boolean isCanceled()
isCanceled
in interface ChangesetDownloadTask
public boolean isFailed()
isFailed
in interface ChangesetDownloadTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |