public class DMXAndroidDialog extends android.app.Dialog implements DMXDialog
DMXDialog
for Android. This dialog can be used to display
custom view and custom controls. It is asynchronous, meaning that it will not block main
UI thread when displayed.android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener
DLG_OPTION_CANCEL, DLG_OPTION_CLOSED, DLG_OPTION_NO, DLG_OPTION_OK, DLG_OPTION_YES, DLG_TYPE_ERROR, DLG_TYPE_INFO, DLG_TYPE_PLAIN, DLG_TYPE_QUESTION, DLG_TYPE_WARNING, OPIONS_OK_CANCEL, OPTIONS_OK, OPTIONS_YES_NO, OPTIONS_YES_NO_CANCEL
Constructor and Description |
---|
DMXAndroidDialog(android.app.Activity activity,
DMXDialogView view)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
closeDialog()
Close this dialog.
|
DMXDialogView |
getDialogView()
Returns instance of
DMXDialogView displayed by this dialog. |
int |
showDialog()
Show this dialog.
|
addContentView, cancel, closeOptionsMenu, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
public DMXAndroidDialog(android.app.Activity activity, DMXDialogView view)
activity
- parent activityview
- view to displaypublic int showDialog()
DMXDialog
Show this dialog. Calling this method might block calling thread until dialog is closed. This is implementation dependent.
This method can optionally return an integer value that indicates some result (for example, selected option, input value etc.).
showDialog
in interface DMXDialog
public void closeDialog()
DMXDialog
closeDialog
in interface DMXDialog
public DMXDialogView getDialogView()
DMXDialog
DMXDialogView
displayed by this dialog.getDialogView
in interface DMXDialog
Copyright © 2012-2014 Vektor Software. All Rights Reserved.