DialogType - The type of the dialog, which is created by the builderBuilderType - The type of the builderpublic abstract class AbstractValidateableDialogBuilder<DialogType extends ValidateableDialog,BuilderType extends AbstractValidateableDialogBuilder<DialogType,?>> extends AbstractHeaderDialogBuilder<DialogType,BuilderType>
| Constructor and Description |
|---|
AbstractValidateableDialogBuilder(android.content.Context context)
Creates a new builder, which allows to create dialogs, which allow to create and show
dialogs, which are designed according to Android 5's Material Design guidelines even on
pre-Lollipop devices and can be validated.
|
AbstractValidateableDialogBuilder(android.content.Context context,
int themeResourceId)
Creates a new builder, which allows to create dialogs, which allow to create and show
dialogs, which are designed according to Android 5's Material Design guidelines even on
pre-Lollipop devices and can be validated.
|
| Modifier and Type | Method and Description |
|---|---|
BuilderType |
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, which is created by the builder, is clicked.
|
BuilderType |
addValidator(DialogValidator validator)
Adds a new validator, which should be executed when the positive button of the dialog, which
is created by the builder, is clicked.
|
obtainStyledAttributes, setHeaderBackground, setHeaderBackground, setHeaderBackgroundColor, setHeaderDividerColor, setHeaderHeight, setHeaderIcon, setHeaderIcon, showHeader, showHeaderDividercreate, getContext, getDialog, onCreateDialog, self, setBackground, setBackground, setBackgroundColor, setCancelable, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setOnCancelListener, setOnDismissListener, setOnShowListener, setTitle, setTitle, setTitleColor, setView, setViewpublic AbstractValidateableDialogBuilder(android.content.Context context)
context - The context, which should be used by the builder, as an instance of the class Context. The context may not be nullpublic AbstractValidateableDialogBuilder(android.content.Context context,
int themeResourceId)
context - The context, which should be used by the builder, 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 BuilderType addValidator(DialogValidator validator)
validator - The validator, which should be added, as an instance of the type DialogValidator. The validator may not be nullpublic final BuilderType addAllValidators(java.util.Collection<DialogValidator> validators)
validators - 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 added