net.sf.springlayout.web.validator.condition
Interface Condition

All Known Implementing Classes:
AbstractBooleanCondition, AndCondition, OrCondition, PathBasedCondition

public interface Condition

Author:
Adam Boas Created on 30/05/2006

Method Summary
 void afterPropertiesSet()
          This is called by the form which contains this condition in it's afterPropertiesSet method although it has the same name as the Spring InitializingBean interface method it will not be called by the IoC container.
 boolean evaluate(java.lang.String fieldId, org.springframework.beans.BeanWrapper wrappedObject)
           
 java.lang.String getJavascript(OnPageFieldInstance instance, java.lang.Object command, java.lang.String formName)
           
 java.lang.String getPostProcessingJavascript(OnPageFieldInstance instance, java.lang.String formName)
           
 

Method Detail

evaluate

boolean evaluate(java.lang.String fieldId,
                 org.springframework.beans.BeanWrapper wrappedObject)
Parameters:
wrappedObject -
Returns:

getJavascript

java.lang.String getJavascript(OnPageFieldInstance instance,
                               java.lang.Object command,
                               java.lang.String formName)
Parameters:
actualPath - of the control which needs javascript rendered.
Returns:
a javascript representation of this condition

afterPropertiesSet

void afterPropertiesSet()
This is called by the form which contains this condition in it's afterPropertiesSet method although it has the same name as the Spring InitializingBean interface method it will not be called by the IoC container. if this is not a valid executable condition throws an Exception

Throws:
LayoutFormConfigurationException

getPostProcessingJavascript

java.lang.String getPostProcessingJavascript(OnPageFieldInstance instance,
                                             java.lang.String formName)


Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.