public interface ValidateableDialogDecorator extends Dialog
| 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.
|
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.
|
getContextjava.util.Set<DialogValidator> getValidators()
Set or an empty set, if no
validators are executedvoid addValidator(DialogValidator validator)
validator - The validator, which should be added, as an instance of the type DialogValidator. The validator may not be nullvoid 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 addedvoid removeValidator(DialogValidator validator)
validator - The validator, which should be removed, as an instance of the type DialogValidator. The validator may not be nullvoid removeAllValidators(java.util.Collection<DialogValidator> validators)
validators - 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
removed