|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.apache.turbine.modules.Assembler
|
+--org.apache.turbine.modules.Screen
|
+--org.apache.turbine.modules.screens.TemplateScreen
|
+--org.apache.turbine.modules.screens.WebMacroSiteScreen
Base WebMacro Screen. This screen relies on the WebMacroSitePage being set as the default page. This screen can be called directly to generate a WebMacro Screen. The buildTemplate() assumes the template parameter has been set in the RunData object (a default template is specified in the WebMacroSitePage). 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.
| Constructor Summary | |
WebMacroSiteScreen()
Deprecated. |
|
| Method Summary | |
org.apache.ecs.ConcreteElement |
buildTemplate(RunData data)
Deprecated. This builds the WebMacro template. |
protected java.lang.String |
buildWMTemplate(org.webmacro.servlet.WebContext context,
java.lang.String templateFile)
Deprecated. TurbineWebMacro.handleRequest(context,templateFile) the template. |
protected void |
doBuildTemplate(RunData data)
Deprecated. Needs to be implemented to make TemplateScreen like us. |
protected void |
doBuildTemplate(RunData data,
org.webmacro.servlet.WebContext context)
Deprecated. WebMacro Screens extending this class should overide this method to perform any particular business logic and add information to the context. |
static org.webmacro.servlet.WebContext |
getContext(RunData data)
Deprecated. Return the WebContext needed by WebMacro. |
| 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, prepareText, prepareTextMinimum, setLayout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebMacroSiteScreen()
| Method Detail |
protected void doBuildTemplate(RunData data,
org.webmacro.servlet.WebContext context)
throws java.lang.Exception
data - Turbine information.context - Context for web pages.
Exception, - a generic exception.
java.lang.Exception
protected void doBuildTemplate(RunData data)
throws java.lang.Exception
doBuildTemplate in class TemplateScreendata - Turbine information.
Exception, - a generic exception.
java.lang.Exception
public org.apache.ecs.ConcreteElement buildTemplate(RunData data)
throws java.lang.Exception
buildTemplate in class TemplateScreendata - Turbine information.
Exception, - a generic exception.
java.lang.Exceptionpublic static org.webmacro.servlet.WebContext getContext(RunData data)
data - Turbine information.
protected java.lang.String buildWMTemplate(org.webmacro.servlet.WebContext context,
java.lang.String templateFile)
throws java.lang.Exception
context - Context for web apps.templateFile - Name of template file.
Exception, - a generic exception.
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||