net.sf.doolin.gui.validation
Interface ValidationSupport<B>

Type Parameters:
B - Type of object for the view
All Known Implementing Classes:
ValidationSupportImpl, WindowValidationSupportImpl

public interface ValidationSupport<B>

Defines the support for the validation of a view

Author:
Damien Coraboeuf

Method Summary
 SubscriberValidator getSubscriberValidator()
          Gets the subscription validator that is used.
 GUIValidation getValidation()
          Gets the result of the validation
 void invalidate()
          Sets the validation as being invalid (used for Cancel actions)
 boolean isValid()
          Checks if the validation is OK
 boolean isValidationEnabled()
          Checks if is validation enabled.
 Map<Object,GUIValidation> keyMap()
          Index of validation results, indexed by field keys
 void setValidator(GUIValidator<B> newValidator)
          Sets the validator to use for this validation support.
 

Method Detail

isValidationEnabled

boolean isValidationEnabled()
Checks if is validation enabled.

Returns:
true, if is validation enabled

getValidation

GUIValidation getValidation()
Gets the result of the validation

Returns:
Validation result

isValid

boolean isValid()
Checks if the validation is OK

Returns:
true if validation is OK

setValidator

void setValidator(GUIValidator<B> newValidator)
Sets the validator to use for this validation support.

Parameters:
newValidator - Validator to use

keyMap

Map<Object,GUIValidation> keyMap()
Index of validation results, indexed by field keys

Returns:
Index of validation results, indexed by field keys

invalidate

void invalidate()
Sets the validation as being invalid (used for Cancel actions)


getSubscriberValidator

SubscriberValidator getSubscriberValidator()
Gets the subscription validator that is used.

Returns:
Subscription validator


Copyright © 2011. All Rights Reserved.