org.apache.turbine.modules.screens
Class VelocityDirectScreen

java.lang.Object
  |
  +--org.apache.turbine.modules.Assembler
        |
        +--org.apache.turbine.modules.Screen
              |
              +--org.apache.turbine.modules.screens.TemplateScreen
                    |
                    +--org.apache.turbine.modules.screens.VelocityScreen
                          |
                          +--org.apache.turbine.modules.screens.VelocityDirectScreen

public class VelocityDirectScreen
extends VelocityScreen

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.

Version:
$Id: VelocityDirectScreen.java,v 1.1 2001/08/19 17:59:18 mpoeschl Exp $
Author:
Dave Bryson

Fields inherited from class org.apache.turbine.modules.Screen
filter, minFilter
 
Constructor Summary
VelocityDirectScreen()
           
 
Method Summary
 org.apache.ecs.ConcreteElement buildTemplate(RunData data)
          This builds the Velocity template.
 
Methods inherited from class org.apache.turbine.modules.screens.VelocityScreen
doBuildTemplate, doBuildTemplate, getContext
 
Methods inherited from class org.apache.turbine.modules.screens.TemplateScreen
doBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplate
 
Methods inherited from class org.apache.turbine.modules.Screen
build, getLayout, htmlFilter, htmlMinFilter, prepareText, prepareTextMinimum, setLayout
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

VelocityDirectScreen

public VelocityDirectScreen()
Method Detail

buildTemplate

public org.apache.ecs.ConcreteElement buildTemplate(RunData data)
                                             throws java.lang.Exception
This builds the Velocity template.
Overrides:
buildTemplate in class VelocityScreen
Parameters:
data - Turbine information.
Returns:
A ConcreteElement.
Throws:
Exception, - a generic exception.


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