|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormComponentConfig
This interface defines the api used by the form handler used to pass information to a form component during initialization and execution.
| Method Summary | |
|---|---|
boolean |
getBooleanParameterValue(java.lang.String parameterName)
Returns the value of a config parameter parsed as a boolean. |
java.util.Calendar |
getCalendarParameterValue(java.lang.String parameterName,
java.lang.String datepattern)
Returns the value of a config parameter parsed as a Calendar object. |
double |
getDoubleParameterValue(java.lang.String parameterName)
Returns the value of a config parameter parsed as a double. |
float |
getFloatParameterValue(java.lang.String parameterName)
Returns the value of a config parameter parsed as a float. |
int |
getIntegerParameterValue(java.lang.String parameterName)
Returns the value of a config parameter parsed as an int. |
java.lang.String[] |
getParameterNames()
Return an array of all parameter names. |
java.lang.String |
getParameterValue(java.lang.String parameterName)
Returns the value of a config parameter. |
java.lang.String |
getParameterValue(java.lang.String parameterName,
java.lang.String defaultValue)
Returns the value of a config parameter. |
java.lang.String[] |
getParameterValues(java.lang.String parameterName)
Returns the values of a config parameter. |
java.lang.String |
getRequiredParameterValue(java.lang.String parameterName)
Returns the value of a required config parameter. |
java.lang.String |
getText(State state,
javax.servlet.http.HttpServletRequest req,
java.lang.String parameterName)
Reads a parameter from the config and post processes it, using the getTextValue() method. |
java.lang.String[] |
getTexts(State state,
javax.servlet.http.HttpServletRequest req,
java.lang.String parameterName)
Reads the parameter values from the config and post processes them, using the getTextValue() method. |
java.lang.String |
getTextValue(State state,
javax.servlet.http.HttpServletRequest req,
java.lang.String stylesheet)
Processes a stylesheet using the xml from the client's session as xml input. |
| Method Detail |
|---|
java.lang.String getParameterValue(java.lang.String parameterName)
parameterName - The name of the parameter for which the value
should be returned.
null no parameter with the specified name could be found.
java.lang.String getParameterValue(java.lang.String parameterName,
java.lang.String defaultValue)
parameterName - The name of the parameter for which the value
should be returned.defaultValue - The value that should be returned if no matching
parameter could be found in the config.
defaultValue no parameter with the specified name could be found.java.lang.String[] getParameterValues(java.lang.String parameterName)
parameterName - The name of the parameter for which the values
should be returned.
java.lang.String[] getParameterNames()
java.lang.String getRequiredParameterValue(java.lang.String parameterName)
throws InitializationException
parameterName - The name of the parameter for which the value
should be returned.
InitializationException - If no parameter with the specified
name could be found.
boolean getBooleanParameterValue(java.lang.String parameterName)
throws InitializationException
parameterName - The name of the parameter for which the value
should be returned.
InitializationException - if the value is not a boolean or if the no parameter with the specified name is
found
int getIntegerParameterValue(java.lang.String parameterName)
throws InitializationException
parameterName - The name of the parameter for which the value
should be returned.
InitializationException - if the value is not an int or if the no parameter with the specified name is
found
double getDoubleParameterValue(java.lang.String parameterName)
throws InitializationException
parameterName -
InitializationException - if the value is not a double or if the no parameter with the specified name is
found
float getFloatParameterValue(java.lang.String parameterName)
throws InitializationException
parameterName -
InitializationException - if the value is not a float or if the no parameter with the specified name is
found
java.util.Calendar getCalendarParameterValue(java.lang.String parameterName,
java.lang.String datepattern)
throws InitializationException
parameterName - datepattern -
InitializationException - if the value is not a valid date or if the no parameter with the specified name
is found
java.lang.String getText(State state,
javax.servlet.http.HttpServletRequest req,
java.lang.String parameterName)
state - The state of the formflow, which is used for retrieving the flowvalues, session etc.req - The HttpRequest that triggered the form processing.parameterName - The name of the parameter from which the value should be used.
null
if no such value could be found.
java.lang.String[] getTexts(State state,
javax.servlet.http.HttpServletRequest req,
java.lang.String parameterName)
state - The state of the formflow, which is used for retrieving the flowvalues, session etc.req - The HttpRequest that triggered the form processing.parameterName - The name of the parameter from which the values should be used.
java.lang.String getTextValue(State state,
javax.servlet.http.HttpServletRequest req,
java.lang.String stylesheet)
state - The state of the formflow, which is used for retrieving the flowvalues, session etc.req - The HttpRequest that triggered the form processing.stylesheet - The xsl stylesheet or simple parameter that should be processed.
stylesheet argument doesn't contain xsl, then
the value of the argument is returned.
Otherwise, an xml document is constructed which contains the session values in the
session keys starting with "GX_". The userinfo and shopcart xml are added to
this xml document aswell. The root element of the document is <handler>, so the path
the xml stored in the GX_test session, will be /handler/test.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||