com.txtnation.android
Class TimedProgressDialog

java.lang.Object
  extended by android.app.Dialog
      extended by com.txtnation.android.GalDialog
          extended by com.txtnation.android.TimedProgressDialog
All Implemented Interfaces:
android.content.DialogInterface, android.view.KeyEvent.Callback, android.view.View.OnCreateContextMenuListener, android.view.Window.Callback

public class TimedProgressDialog
extends GalDialog

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 com.txtnation.android.GalDialog
addBackButton, addButtonHorizontal, addButtonVertical, addCenteredText, addFooterTextLink, addLine, addProductRadioButton, addProgressBar, addSpinner, addText, addTextTohelpTextGroup, addTextToMessageAndDataRatesApplyTextGroup, addTextTopriceSelectionScreenTextGroup, addTextToPricesSelectionWarningTextGroup, addTextToStopMessageTextGroup, addTextViewToConfirmationScreen, addTextViewToFailureScreen, addTextViewToSuccessScreen, getSelectedProduct, hideHeader, notifyProductionSelected, notifyPromptProductSelection, notifyPurchaseConfirmed, notifyShowInfoDialogRequest, setMax, setProgress, setTitle
 
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

TimedProgressDialog

public TimedProgressDialog(android.content.Context context,
                           BillingManager billingManager,
                           java.lang.String message,
                           java.lang.String title,
                           ClientConfig config,
                           int txtCol)
Method Detail

show

public void show()
Overrides:
show in class android.app.Dialog

markCompleted

public void markCompleted()

dismiss

public void dismiss()
Specified by:
dismiss in interface android.content.DialogInterface
Overrides:
dismiss in class GalDialog

onTimeout

public void onTimeout()