|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.control.Control lumis.doui.control.ValidatorControl lumis.doui.control.validator.RequiredValueValidatorControl lumis.service.portalmanagement.socialnetwork.doui.control.RequiredValueWhenEnableControl
public class RequiredValueWhenEnableControl
RequiredValueValidatorControl
extension that only validates if the control's value is set if it is enabled.
Field Summary |
---|
Fields inherited from class lumis.doui.control.ValidatorControl |
---|
clientSideValidationEnabled, DEFAULT_VALUE, ERROR_TYPE_CONTROL_BEING_VALIDATED_IS_NOT_CLIENT_SIDE_READABLE, ERROR_TYPE_ERROR_VALIDATING_CONTROL, messages, SOURCE_FIELD_NAME_UNDEFINED, validateOnClientSideEvents |
Constructor Summary | |
---|---|
RequiredValueWhenEnableControl()
|
Method Summary | |
---|---|
boolean |
doServerValidation()
Performs the server validation of the controls for this validator. |
java.lang.String |
getScriptValidationFunctionImplementation()
Returns the client side code that must be placed in a client side function to perform the validation |
Methods inherited from class lumis.doui.control.validator.RequiredValueValidatorControl |
---|
getControlResource, getDefaultMessages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.doui.control.IControl |
---|
buildSubControls, createContainer, disconnect, getChildControls, getId, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes, setValid |
Constructor Detail |
---|
public RequiredValueWhenEnableControl()
Method Detail |
---|
public java.lang.String getScriptValidationFunctionImplementation() throws ControlException, PortalException
IValidatorControl
getScriptValidationFunctionImplementation
in interface IValidatorControl
getScriptValidationFunctionImplementation
in class RequiredValueValidatorControl
PortalException
ControlException
public boolean doServerValidation() throws ControlException, PortalException
ValidatorControl
doServerValidation
in class RequiredValueValidatorControl
ControlException
PortalException
ValidatorControl.serverValidate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |