Class bbq.gui.form.validator.NotNullValidator

Defined in: NotNullValidator.js.

Ensures that the field does not have a null value

var field = new bbq.gui.form.TextField();
field.addValidator(new bbq.gui.form.validator.NotNullValidator());

// throws an exception
field.getValue();

field.setValue("foo");

// will not throw an exception
field.getValue();

Class Summary
Constructor Attributes Constructor Name and Description
 
Ensures that the field does not have a null value
Method Summary
Method Attributes Method Name and Description
 
validate(value)
Validates the passed value.

Constructor Detail

bbq.gui.form.validator.NotNullValidator()

Method Detail

{String} validate(value)

Validates the passed value.
Parameters:
Name Type Comment
value {Object} The value to validate
Returns:
{String} An error code. Returns null if no error occurred.