|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.gui.VelocityPage
public class VelocityPage
Page implementation which can handle Velocity-templates
following objects may be used in the context by default and may not
be used in set(String, Object)
Formatter instanceThreadContext.getThreadPrincipal()ThreadContext.getThreadRequest()Configuration.get()
| Constructor Summary | |
|---|---|
VelocityPage()
if you use this constructor, you have to call setTemplate(String) |
|
VelocityPage(String resource)
loads the given template. the Resource to use will be determined automatically |
|
| Method Summary | |
|---|---|
String |
getContentType()
Returns the content type of the page, for example "test/html". |
void |
set(String name,
Object obj)
adds the given object to the VelocityContext |
void |
setContentType(String contentType)
set the contenttype |
void |
setTemplate(String template)
set the velocity-template |
String |
show()
Called from the Dispatcher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VelocityPage()
setTemplate(String)
public VelocityPage(String resource)
template. the Resource to use will be determined automatically
resource - the velocity template| Method Detail |
|---|
public void set(String name,
Object obj)
VelocityContext
name - variable nameobj - objectpublic String show()
Page
show in interface Pagepublic String getContentType()
Page
getContentType in interface Pagepublic void setTemplate(String template)
template - a string containing velocity-syntaxpublic void setContentType(String contentType)
contentType - the contenttype
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||