| org.apache.turbine.modules.screens.TemplateScreen org.apache.turbine.modules.screens.VelocityScreen
All known Subclasses: org.apache.turbine.modules.screens.VelocityErrorScreen, org.apache.turbine.modules.screens.VelocityDirectScreen, org.apache.turbine.services.template.modules.screens.existing.PageWithClass, org.apache.turbine.services.template.modules.screens.ExistPageWithClass, org.apache.turbine.modules.screens.VelocitySecureScreen, org.apache.turbine.services.template.modules.screens.existing.dflt.Default,
VelocityScreen | public class VelocityScreen extends TemplateScreen (Code) | | Base Velocity Screen. The buildTemplate() assumes the template
parameter has been set in the RunData object. This provides the
ability to execute several templates from one Screen.
If you need more specific behavior in your application, extend this
class and override the doBuildTemplate() method.
author: Dave Bryson author: Henning P. Schmiedehausen version: $Id: VelocityScreen.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
public ConcreteElement | buildTemplate(RunData data) This builds the Velocity template.
Parameters: data - Turbine information. | protected void | doBuildTemplate(RunData data, Context context) Velocity Screens extending this class should overide this
method to perform any particular business logic and add
information to the context. | protected void | doBuildTemplate(RunData data) Needs to be implemented to make TemplateScreen like us. | public static Context | getContext(RunData data) Return the Context needed by Velocity.
Parameters: data - Turbine information. |
buildTemplate | public ConcreteElement buildTemplate(RunData data) throws Exception(Code) | | This builds the Velocity template.
Parameters: data - Turbine information. A ConcreteElement. exception: Exception - , a generic exception. |
doBuildTemplate | protected void doBuildTemplate(RunData data, Context context) throws Exception(Code) | | Velocity Screens extending this class should overide this
method to perform any particular business logic and add
information to the context.
Parameters: data - Turbine information. Parameters: context - Context for web pages. exception: Exception - , a generic exception. |
doBuildTemplate | protected void doBuildTemplate(RunData data) throws Exception(Code) | | Needs to be implemented to make TemplateScreen like us. The
actual method that you should override is the one with the
context in the parameter list.
Parameters: data - Turbine information. exception: Exception - , a generic exception. |
getContext | public static Context getContext(RunData data)(Code) | | Return the Context needed by Velocity.
Parameters: data - Turbine information. A Context. |
Fields inherited from org.apache.turbine.modules.screens.TemplateScreen | protected Log log(Code)(Java Doc)
|
|
|