public abstract class AbstractValidateableDialog extends AbstractHeaderDialog implements ValidateableDialog
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| Modifier | Constructor and Description |
|---|---|
protected |
AbstractValidateableDialog(android.content.Context context,
int themeResourceId)
Creates a dialog, which is designed according to Android 5's Material Design guidelines even
on pre-Lollipop devices and can be validated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllValidators(java.util.Collection<DialogValidator> validators)
Adds all validators, which are contained by a specific collection and should be executed when
the positive button of the dialog is clicked.
|
void |
addValidator(DialogValidator validator)
Adds a new validator, which should be executed when the positive button of the dialog is
clicked.
|
java.util.Set<DialogValidator> |
getValidators()
Returns a set, which contains the validators, which are executed when the positive button of
the dialog is clicked.
|
protected void |
onAttachDecorators(android.view.View view)
The method, which is invoked when the dialog's decorators should be attached.
|
protected void |
onDetachDecorators()
The method, which is invoked when the dialog's decorators should be detached.
|
void |
onRestoreInstanceState(android.os.Bundle savedInstanceState) |
android.os.Bundle |
onSaveInstanceState() |
void |
removeAllValidators(java.util.Collection<DialogValidator> validators)
Removes all validators, which are contained by a specific collection and should not be
executed, when the positive button of the dialog is clicked, anymore.
|
void |
removeValidator(DialogValidator validator)
Removes a specific validator, which should not be executed, when the positive button of the
dialog is clicked, anymore.
|
getHeaderBackground, getHeaderDividerColor, getHeaderHeight, getHeaderIcon, isHeaderDividerShown, isHeaderShown, setHeaderBackground, setHeaderBackground, setHeaderBackgroundColor, setHeaderDividerColor, setHeaderHeight, setHeaderIcon, setHeaderIcon, showHeader, showHeaderDividergetBackground, getIcon, getMessage, getMessageColor, getTitle, getTitleColor, onStart, onStop, setBackground, setBackground, setBackgroundColor, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setTitle, setTitleColor, setView, setViewaddContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, 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, onSearchRequested, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenuclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCancelable, setOnCancelListener, setOnDismissListener, setOnShowListenergetBackground, getIcon, getMessage, getMessageColor, getTitle, getTitleColor, setBackground, setBackground, setBackgroundColor, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setTitle, setTitle, setTitleColor, setView, setViewgetContextgetHeaderBackground, getHeaderDividerColor, getHeaderHeight, getHeaderIcon, isHeaderDividerShown, isHeaderShown, setHeaderBackground, setHeaderBackground, setHeaderBackgroundColor, setHeaderDividerColor, setHeaderHeight, setHeaderIcon, setHeaderIcon, showHeader, showHeaderDividerprotected AbstractValidateableDialog(android.content.Context context,
int themeResourceId)
context - The context, which should be used by the dialog, as an instance of the class Context. The context may not be nullthemeResourceId - The resource id of the theme, which should be used by the dialog, as an Integer value. The resource id must correspond to a valid themepublic final java.util.Set<DialogValidator> getValidators()
ValidateableDialogDecoratorgetValidators in interface ValidateableDialogDecoratorSet or an empty set, if no
validators are executedpublic final void addValidator(DialogValidator validator)
ValidateableDialogDecoratoraddValidator in interface ValidateableDialogDecoratorvalidator - The validator, which should be added, as an instance of the type DialogValidator. The validator may not be nullpublic final void addAllValidators(java.util.Collection<DialogValidator> validators)
ValidateableDialogDecoratoraddAllValidators in interface ValidateableDialogDecoratorvalidators - A collection, which contains all validators, which should be added, as an instance of
the type Collection or an empty collection, if no validators should be addedpublic final void removeValidator(DialogValidator validator)
ValidateableDialogDecoratorremoveValidator in interface ValidateableDialogDecoratorvalidator - The validator, which should be removed, as an instance of the type DialogValidator. The validator may not be nullpublic final void removeAllValidators(java.util.Collection<DialogValidator> validators)
ValidateableDialogDecoratorremoveAllValidators in interface ValidateableDialogDecoratorvalidators - A collection, which contains the validators, which should be removed, as an instance
of the type Collection or an empty collection, if no validators should be
removedpublic android.os.Bundle onSaveInstanceState()
onSaveInstanceState in class AbstractHeaderDialogpublic void onRestoreInstanceState(android.os.Bundle savedInstanceState)
onRestoreInstanceState in class AbstractHeaderDialogprotected void onAttachDecorators(android.view.View view)
AbstractMaterialDialogonAttachDecorators in class AbstractHeaderDialogview - The root view of the view hierarchy, which should be modified by the decorators, as
an instance of the class View. The view may not be nullprotected void onDetachDecorators()
AbstractMaterialDialogonDetachDecorators in class AbstractHeaderDialog