public abstract static class ProgressDialog.ProgressTask extends java.lang.Object implements ProgressListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
canceled |
protected ProgressDialog |
dialog |
Constructor and Description |
---|
ProgressTask() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowsCancel() |
boolean |
isCanceled() |
protected abstract java.lang.Object |
run() |
void |
setIndeterminate(boolean bool)
Allows the object performing the action to indicate that it won't be able to report back progress information.
|
void |
setNote(java.lang.String note)
Sets some sort of note or information about the current position.
|
void |
setProgress(int val)
Used to update the current progress value, should be between 0 and the value sent to setProgressMax.
|
void |
setProgressDialog(ProgressDialog dialog) |
void |
setProgressMax(int max)
Used to indicate the upper bound of value that will be passed to setProgress.
|
protected ProgressDialog dialog
protected boolean canceled
public void setProgressDialog(ProgressDialog dialog)
public void setProgressMax(int max)
ProgressListener
setProgressMax
in interface ProgressListener
public void setProgress(int val)
ProgressListener
setProgress
in interface ProgressListener
public void setNote(java.lang.String note)
ProgressListener
setNote
in interface ProgressListener
public void setIndeterminate(boolean bool)
ProgressListener
setIndeterminate
in interface ProgressListener
protected abstract java.lang.Object run() throws java.lang.Exception
java.lang.Exception
protected boolean allowsCancel()
public boolean isCanceled()