net.sf.springlayout.web.validator.condition
Class PathBasedCondition

java.lang.Object
  extended by net.sf.springlayout.web.validator.condition.PathBasedCondition
All Implemented Interfaces:
java.io.Serializable, Condition

public class PathBasedCondition
extends java.lang.Object
implements java.io.Serializable, Condition

Author:
Adam Boas Created on 18/05/2006
See Also:
Serialized Form

Constructor Summary
PathBasedCondition()
          default constructor
 
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 getOperator()
           
 java.lang.String getPath()
           
 java.lang.String getPostProcessingJavascript(OnPageFieldInstance instance, java.lang.String formName)
           
 java.lang.String getValue()
           
 boolean isOnThisForm()
          Retrieves the onThisForm for this PathBasedCondition.
 void setOnThisForm(boolean onThisForm)
          Sets the onThisForm for this PathBasedCondition.
 void setOperator(java.lang.String operator)
           
 void setPath(java.lang.String path)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathBasedCondition

public PathBasedCondition()
default constructor

Method Detail

setOperator

public void setOperator(java.lang.String operator)

getOperator

public java.lang.String getOperator()

setPath

public void setPath(java.lang.String path)
Parameters:
path -

getPath

public java.lang.String getPath()

setValue

public void setValue(java.lang.String value)

getValue

public java.lang.String getValue()

evaluate

public boolean evaluate(java.lang.String fieldId,
                        org.springframework.beans.BeanWrapper wrappedObject)
Specified by:
evaluate in interface Condition
Returns:

getJavascript

public java.lang.String getJavascript(OnPageFieldInstance instance,
                                      java.lang.Object command,
                                      java.lang.String formName)
Specified by:
getJavascript in interface Condition
Returns:
a javascript representation of this condition

getPostProcessingJavascript

public java.lang.String getPostProcessingJavascript(OnPageFieldInstance instance,
                                                    java.lang.String formName)
Specified by:
getPostProcessingJavascript in interface Condition

setOnThisForm

public void setOnThisForm(boolean onThisForm)
Sets the onThisForm for this PathBasedCondition.

Parameters:
onThisForm - Sets the onThisForm for this PathBasedCondition.

isOnThisForm

public boolean isOnThisForm()
Retrieves the onThisForm for this PathBasedCondition.

Returns:
Returns the onThisForm for this PathBasedCondition.

afterPropertiesSet

public void afterPropertiesSet()
Description copied from interface: Condition
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

Specified by:
afterPropertiesSet in interface Condition


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