nl.gx.webmanager.handler.forms
Interface PreComponent


public interface PreComponent

This interface represents a combination of a formcomponent and a precondition. The formhandler will check precondition before executing the corresponding component.


Method Summary
 boolean checkPreCondition(SessionFormFlow formValues, javax.servlet.http.HttpServletRequest req)
          Evaluates the precondition of this instance.
 FormComponent getComponent()
          Returns the form component of this instance.
 java.lang.String getPreCondition()
          Returns the precondition xsl of this instance.
 

Method Detail

getPreCondition

java.lang.String getPreCondition()
Returns the precondition xsl of this instance.

Returns:
The precodition or null if no such precondition is present.

getComponent

FormComponent getComponent()
Returns the form component of this instance.

Returns:
The form component of this instance.

checkPreCondition

boolean checkPreCondition(SessionFormFlow formValues,
                          javax.servlet.http.HttpServletRequest req)
Evaluates the precondition of this instance.

Parameters:
formValues - The object contain information in the formflow.
req - The http servlet request that triggered the form handling.
Returns:
true If there is no precondition or the precondition xsl transformation returned the value "true", false otherwise.


Copyright © 2007-2010 GX creative online development BV. All Rights Reserved.