public class InputDialogFragment extends BaseDialogFragment<ConfirmationActionHandler>
An InputDialog is a dialog which can be used to let the user enter some data, when a complete activity for handling that would be overkill.
controller| Constructor and Description |
|---|
InputDialogFragment() |
| Modifier and Type | Method and Description |
|---|---|
static InputDialogFragment |
createDialog(int dialogResourceID)
Static method to conveniently initialize a
InputDialogFragment object. |
static InputDialogFragment |
createDialog(int dialogResourceID,
ViewInterceptor viewInterceptor)
Static method to conveniently initialize a
InputDialogFragment object. |
void |
onCancel(android.content.DialogInterface dialog)
This method will be invoked when the dialog is canceled.
|
void |
onClick(android.content.DialogInterface dialog,
int which)
This method will be invoked when a button in the dialog is clicked.
|
void |
populateDialog(android.app.AlertDialog.Builder builder,
android.os.Bundle arguments)
Abstract method to populate the given builder-object with appropriate
content.
|
callInterceptor, getDialogTag, getViewInterceptor, isRegisterHandler, onAttach, onCreateDialog, setActionHandler, setRegisterHandler, setViewInterceptordismiss, dismissAllowingStateLoss, dump, getDialog, getShowsDialog, getTheme, isCancelable, onActivityCreated, onCreate, onDestroyView, onDetach, onDismiss, onSaveInstanceState, onStart, onStop, setCancelable, setShowsDialog, setStyle, show, showequals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getEnterTransition, getExitTransition, getFragmentManager, getId, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityResult, onConfigurationChanged, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onHiddenChanged, onInflate, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onTrimMemory, onViewCreated, onViewStateRestored, registerForContextMenu, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenuclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActivity, getArgumentspublic void populateDialog(android.app.AlertDialog.Builder builder,
android.os.Bundle arguments)
BaseDialogFragmentpopulateDialog in interface DialogFragmentInterfacepopulateDialog in class BaseDialogFragment<ConfirmationActionHandler>builder - The Builder-object that should be populated and represents the
actual dialogarguments - The arguments of the DialogFragment, as retrievable via getArguments().public void onCancel(android.content.DialogInterface dialog)
onCancel in interface android.content.DialogInterface.OnCancelListeneronCancel in class android.app.DialogFragmentdialog - The dialog that was canceled will be passed into the method.public void onClick(android.content.DialogInterface dialog,
int which)
dialog - The dialog that received the click.which - The button that was clicked (e.g. BUTTON1) or the position of the
item clicked.public static InputDialogFragment createDialog(int dialogResourceID)
Static method to conveniently initialize a InputDialogFragment object.
This method initialized the dialog with a layout resource ID, but not with a
ViewInterceptor. The ViewInterceptor has to be set manually, if necessary,
by using the method BaseDialogFragment.setViewInterceptor(ViewInterceptor).
dialogResourceID - The resource-id for the dialog's layout.InputDialogFragment object.public static InputDialogFragment createDialog(int dialogResourceID, ViewInterceptor viewInterceptor)
Static method to conveniently initialize a InputDialogFragment object.
This method initialized the dialog with a layout resource ID and a ViewInterceptor.
dialogResourceID - The resource-id for the dialog's layout.viewInterceptor - The ViewInterceptor which enables the caller access to the
dialog's View elements.InputDialogFragment object.