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)
ProgressListenersetProgressMax in interface ProgressListenerpublic void setProgress(int val)
ProgressListenersetProgress in interface ProgressListenerpublic void setNote(java.lang.String note)
ProgressListenersetNote in interface ProgressListenerpublic void setIndeterminate(boolean bool)
ProgressListenersetIndeterminate in interface ProgressListenerprotected abstract java.lang.Object run()
throws java.lang.Exception
java.lang.Exceptionprotected boolean allowsCancel()
public boolean isCanceled()