org.apache.jetspeed.modules.parameters
Class JspParameterPresentationStyle

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.jetspeed.modules.parameters.ParameterPresentationStyle
          extended byorg.apache.jetspeed.modules.parameters.JspParameterPresentationStyle
Direct Known Subclasses:
TextArea

public class JspParameterPresentationStyle
extends ParameterPresentationStyle

Generic jsp-based presentation style. The following default objects are put in the context:

Supporting jsp templates should be placed in ${velocity-templates-root}/parameters folder.

It may be used directly with "template" as the only required parameter. This is useful when the no additional objects are needed by the template.

If additional objects need to be put in the context, a new class extending JspParameterPresentationStyle should be created. Override buildContext to place custom objects in the jsp context.

If "template" parameter is not specified, it is assumed that the template name is "classname.vm".

Version:
$Id: JspParameterPresentationStyle.java,v 1.5 2005/01/18 17:08:45 morciuch Exp $
Author:
Mark Orciuch

Field Summary
 
Fields inherited from class org.apache.jetspeed.modules.parameters.ParameterPresentationStyle
logger, styleparms
 
Constructor Summary
JspParameterPresentationStyle()
           
 
Method Summary
 void buildContext(org.apache.turbine.util.RunData data, java.lang.String name, java.lang.String value, java.util.Map parms)
          Override this method to put your own objects in the Velocity context
 java.lang.String getContent(org.apache.turbine.util.RunData data, java.lang.String name, java.lang.String value, java.util.Map parms)
          Returns presentation control
 
Methods inherited from class org.apache.jetspeed.modules.parameters.ParameterPresentationStyle
getJavascriptEvents, getParm, setParms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspParameterPresentationStyle

public JspParameterPresentationStyle()
Method Detail

getContent

public java.lang.String getContent(org.apache.turbine.util.RunData data,
                                   java.lang.String name,
                                   java.lang.String value,
                                   java.util.Map parms)
Returns presentation control

Specified by:
getContent in class ParameterPresentationStyle
Parameters:
data - - rundata object
name - - parameter name
value - - current parameter value
parms - - additional style parameters
Returns:
string

buildContext

public void buildContext(org.apache.turbine.util.RunData data,
                         java.lang.String name,
                         java.lang.String value,
                         java.util.Map parms)
Override this method to put your own objects in the Velocity context

Parameters:
data -
name -
value -
parms -


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.