org.apache.turbine.util.template
Class TemplateScreen

java.lang.Object
  extended byorg.apache.turbine.util.template.TemplateScreen

public class TemplateScreen
extends java.lang.Object

Returns output of a Screen module. An instance of this is placed in the Velocity context by the VelocityDirectLayout. This allows the screen to be executed only at rendering. Here's how it's used in a template:

$screen_placeholder

$screen_placeholder.setScreen("Test")

Version:
$Id: TemplateScreen.java 534527 2007-05-02 16:10:59Z tv $
Author:
Raphaël Luta

Constructor Summary
TemplateScreen(RunData data)
          Constructor
 
Method Summary
 TemplateScreen setScreen(java.lang.String screen)
          Set the screen.
 java.lang.String toString()
          Builds the output of the navigation template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateScreen

public TemplateScreen(RunData data)
Constructor

Parameters:
data - A Turbine RunData object.
Method Detail

setScreen

public TemplateScreen setScreen(java.lang.String screen)
Set the screen.

Parameters:
screen - A String with the name of the screen module
Returns:
A TemplateScreen (self).

toString

public java.lang.String toString()
Builds the output of the navigation template.

Returns:
A String.


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