T - the type of the fieldpublic class ValidationHelper<T> extends Object
| Constructor and Description |
|---|
ValidationHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorOuptut(IErrorOutputElement errorOutputToAdd)
Add an error output element where error messages are displayed
|
void |
addValidator(IValidator<T> validatorToAdd)
Adds a validator to this Ui-Widget
|
void |
clearValidation() |
void |
removeAllValidators()
Will remove all registered validators.
|
boolean |
validate(com.google.gwt.user.client.ui.HasValue<T> owner)
Executes the validator.
|
public void addValidator(IValidator<T> validatorToAdd)
validatorToAdd - the validtors to addpublic void clearValidation()
public void addErrorOuptut(IErrorOutputElement errorOutputToAdd)
errorOutputToAdd - the error output element to addpublic void removeAllValidators()
public boolean validate(com.google.gwt.user.client.ui.HasValue<T> owner)
owner - the owning fieldCopyright © 2011–2015 SWM. All rights reserved.