java.lang.Objectandroid.app.Dialog
com.globalcharge.android.GalDialog
com.globalcharge.android.TimedProgressDialog
public class TimedProgressDialog
Progress dialog which shows a bar that fills up from 0 to 100 as time passes. By indicating an expected time for a task to complete and a max timeout this dialog manages user expectations by filling up almost completely in the expected time, but only reaching the end if the timeout is reached.
Nested Class Summary | |
---|---|
static interface |
TimedProgressDialog.TimedProgressDialogListener
|
Nested classes/interfaces inherited from interface android.content.DialogInterface |
---|
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener |
Field Summary |
---|
Fields inherited from interface android.content.DialogInterface |
---|
BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3 |
Constructor Summary | |
---|---|
TimedProgressDialog(android.content.Context context,
BillingManager billingManager,
java.lang.String message,
java.lang.String title,
ClientConfig config,
int txtCol)
|
Method Summary | |
---|---|
void |
dismiss()
|
void |
markCompleted()
|
void |
onTimeout()
|
void |
show()
|
Methods inherited from class android.app.Dialog |
---|
addContentView, cancel, closeOptionsMenu, dispatchKeyEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getVolumeControlStream, getWindow, hide, isShowing, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, takeKeyEvents, unregisterForContextMenu |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimedProgressDialog(android.content.Context context, BillingManager billingManager, java.lang.String message, java.lang.String title, ClientConfig config, int txtCol)
Method Detail |
---|
public void show()
show
in class android.app.Dialog
public void markCompleted()
public void dismiss()
dismiss
in interface android.content.DialogInterface
dismiss
in class GalDialog
public void onTimeout()