org.apache.turbine.util.template
Class TemplateScreen

java.lang.Object
  |
  +--org.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 VelcityDirectLayout. 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,v 1.1 2001/08/19 17:59:18 mpoeschl Exp $
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.
Overrides:
toString in class java.lang.Object
Returns:
A String.


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