lumis.doui.control
Interface IValidatorControl

Package class diagram package IValidatorControl
All Superinterfaces:
IControl
All Known Implementing Classes:
DateCompareValidatorControl, DateDataTypeValidatorControl, EmailValidatorControl, FileNameValidatorControl, FileSizeValidatorControl, FilterUniqueIdValidator, FriendlyIdValidationControl, HtmlEditorValidatorControl, IntegerDataTypeValidatorControl, LengthValidatorControl, MultiFileUploadExtensionCheckControl, MultiFileUploadRequiredValueValidatorControl, NumberDataTypeValidatorControl, RegularExpressionValidatorControl, RequiredValueValidatorControl, RequiredValueWhenEnableControl, RequiredValueWhenVisibleValidatorControl, RestShortNameValidationControl, SearchQueryValidatorControl, ValidatorControl

@StableMinor(version="6.2",
             sinceVersion="4.0")
public interface IValidatorControl
extends IControl

Interface que controls que faz validação devem implementar

Since:
4.0.0

Method Summary
 Collection<String> getControlToValidateIds()
          Returns a collection with the ids of the controls to be validated by this validator control.
 String getScriptClear()
          Clears the message displayed by this validator.
 String getScriptValidate()
          Returns the code that needs to be executed on the client side for this validation.
 String getScriptValidateRegistration()
          Returns a script that must be placed on the page.
 String getScriptValidationFunctionImplementation()
          Returns the client side code that must be placed in a client side function to perform the validation
 String getScriptValidationFunctionName()
          Returns the name of the client side validation function.
 boolean isClientSideValidationEnabled()
          Verify if the parameter ClienteSideValidation is enable.
 boolean serverValidate()
          Validates all dependent control values on the server side
 
Methods inherited from interface lumis.doui.control.IControl
buildSubControls, createContainer, disconnect, getChildControls, getControlResource, getId, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, init, isValid, registerOnEventScript, removeChild, removeChildren, setRenderData, setRuntimeAttributes, setValid
 

Method Detail

serverValidate

boolean serverValidate()
                       throws PortalException
Validates all dependent control values on the server side

Returns:
true if controls are valid and false if not
Throws:
ControlException
PortalException

getScriptValidationFunctionName

String getScriptValidationFunctionName()
                                       throws PortalException
Returns the name of the client side validation function. e.g. return value: Validate_
_

Returns:
the validation function name that was registered for this validator
Throws:
PortalException

getScriptValidate

String getScriptValidate()
                         throws PortalException
Returns the code that needs to be executed on the client side for this validation. Usually returns a call to the validation function name. e.g. return value: Validate_ _ ()

Returns:
a String.
Throws:
PortalException

getScriptValidationFunctionImplementation

String getScriptValidationFunctionImplementation()
                                                 throws PortalException
Returns the client side code that must be placed in a client side function to perform the validation

Returns:
a String.
Throws:
PortalException

getScriptValidateRegistration

String getScriptValidateRegistration()
                                     throws PortalException
Returns a script that must be placed on the page. This script contains function to perform client side validation. This method internally calls getScriptValidationFunctionImplementation() to get the code for validation.

Returns:
script that is used for performing client side validation.
Throws:
PortalException

getScriptClear

String getScriptClear()
                      throws PortalException
Clears the message displayed by this validator.

Returns:
a String.
Throws:
PortalException

getControlToValidateIds

Collection<String> getControlToValidateIds()
                                           throws PortalException
Returns a collection with the ids of the controls to be validated by this validator control.

Returns:
a collection with the controls ids.
Throws:
PortalException

isClientSideValidationEnabled

boolean isClientSideValidationEnabled()
Verify if the parameter ClienteSideValidation is enable.

Returns:
true if the ClienteSideValidation is enable and false otherwise.


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.