Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.turbine.util.template
Class TemplateScreen

    java.lang.Object
      org.apache.turbine.util.template.TemplateScreen

    public class TemplateScreen

extends 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 1071044 2011-02-15 20:47:31Z tv $
Author:
  Raphaël Luta

Constructor Summary
`TemplateScreen(RunData data)` Constructor

Method Summary
`TemplateScreen` | `setScreen(String screen)` Set the screen.
`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(String screen)

  Set the screen.

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

### toString

    public String toString()

  Builds the output of the navigation template.

  Overrides:
    `toString` in class `Object`
  Returns:
    A String.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.