org.gwtbootstrap3.client.ui.base.mixin
Class BlankValidatorMixin<W extends Widget & HasValue<V> & Editor<V>,V>
java.lang.Object
org.gwtbootstrap3.client.ui.base.mixin.DefaultValidatorMixin<W,V>
org.gwtbootstrap3.client.ui.base.mixin.BlankValidatorMixin<W,V>
- Type Parameters:
W - the generic typeV - the value type
- All Implemented Interfaces:
- HasValidators<V>
public class BlankValidatorMixin<W extends Widget & HasValue<V> & Editor<V>,V>
- extends DefaultValidatorMixin<W,V>
Mixin that provides the allowBlank functionality for input fields.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlankValidatorMixin
public BlankValidatorMixin(W inputWidget,
ErrorHandler errorHandler)
- Constructor.
- Parameters:
inputWidget - the input widgeterrorHandler - the error handler
addValidator
public void addValidator(Validator<V> validator)
- Adds the validator.
- Specified by:
addValidator in interface HasValidators<V>- Overrides:
addValidator in class DefaultValidatorMixin<W extends Widget & HasValue<V> & Editor<V>,V>
- Parameters:
validator - the validator
getAllowBlank
public boolean getAllowBlank()
- Returns:
- the allow blank
setAllowBlank
public void setAllowBlank(boolean allowBlank)
- Parameters:
allowBlank - the new allow blank
Copyright © 2015. All rights reserved.