|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.modules.Assembler
org.apache.turbine.modules.Screen
org.apache.turbine.modules.screens.TemplateScreen
org.apache.turbine.modules.screens.VelocityScreen
public class 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.
Field Summary |
---|
Fields inherited from class org.apache.turbine.modules.screens.TemplateScreen |
---|
log |
Fields inherited from class org.apache.turbine.modules.Screen |
---|
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX |
Constructor Summary | |
---|---|
VelocityScreen()
|
Method Summary | |
---|---|
org.apache.ecs.ConcreteElement |
buildTemplate(PipelineData pipelineData)
This builds the Velocity template. |
org.apache.ecs.ConcreteElement |
buildTemplate(RunData data)
Deprecated. Use PipelineData version instead. |
protected void |
doBuildTemplate(PipelineData pipelineData)
Needs to be implemented to make TemplateScreen like us. |
protected void |
doBuildTemplate(PipelineData pipelineData,
org.apache.velocity.context.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)
Deprecated. Use PipelineData version instead. |
protected void |
doBuildTemplate(RunData data,
org.apache.velocity.context.Context context)
Deprecated. Use PipelineData version instead. |
static org.apache.velocity.context.Context |
getContext(PipelineData pipelineData)
Deprecated. Use TurbineVelocity.getContext(pipelineData) |
static org.apache.velocity.context.Context |
getContext(RunData data)
Deprecated. Use TurbineVelocity.getContext(data) |
Methods inherited from class org.apache.turbine.modules.screens.TemplateScreen |
---|
doBuild, doBuild, doPostBuildTemplate, doPostBuildTemplate, doRedirect, doRedirect, doRedirect, doRedirect, setTemplate, setTemplate |
Methods inherited from class org.apache.turbine.modules.Screen |
---|
build, build, getLayout, getLayout, getPrefix, prepareText, prepareTextMinimum, setLayout, setLayout |
Methods inherited from class org.apache.turbine.modules.Assembler |
---|
getRunData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocityScreen()
Method Detail |
---|
@Deprecated protected void doBuildTemplate(RunData data, org.apache.velocity.context.Context context) throws Exception
data
- Turbine information.context
- Context for web pages.
Exception,
- a generic exception.
Exception
protected void doBuildTemplate(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
pipelineData
- Turbine information.context
- Context for web pages.
Exception,
- a generic exception.
Exception
@Deprecated protected void doBuildTemplate(RunData data) throws Exception
doBuildTemplate
in class TemplateScreen
data
- Turbine information.
Exception,
- a generic exception.
Exception
- A generic exception.protected void doBuildTemplate(PipelineData pipelineData) throws Exception
doBuildTemplate
in class TemplateScreen
data
- Turbine information.
Exception,
- a generic exception.
Exception
- A generic exception.@Deprecated public org.apache.ecs.ConcreteElement buildTemplate(RunData data) throws Exception
buildTemplate
in class TemplateScreen
data
- Turbine information.
Exception,
- a generic exception.
Exception
- A generic exception.public org.apache.ecs.ConcreteElement buildTemplate(PipelineData pipelineData) throws Exception
buildTemplate
in class TemplateScreen
data
- Turbine information.
Exception,
- a generic exception.
Exception
- A generic exception.@Deprecated public static org.apache.velocity.context.Context getContext(RunData data)
data
- Turbine information.
@Deprecated public static org.apache.velocity.context.Context getContext(PipelineData pipelineData)
data
- Turbine information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |