|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.String resource)
loads the given template . |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Returns the content type of the page, for example "test/html". |
void |
set(java.lang.String name,
java.lang.Object obj)
adds the given object to the VelocityContext |
void |
setContentType(java.lang.String contentType)
set the contenttype |
void |
setTemplate(java.lang.String template)
set the velocity-template |
java.lang.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(java.lang.String resource)
template
. the Resource
to use will be determined automatically
resource
- the velocity templateMethod Detail |
---|
public void set(java.lang.String name, java.lang.Object obj)
VelocityContext
name
- variable nameobj
- objectpublic java.lang.String show()
Page
show
in interface Page
public java.lang.String getContentType()
Page
getContentType
in interface Page
public void setTemplate(java.lang.String template)
template
- a string containing velocity-syntaxpublic void setContentType(java.lang.String contentType)
contentType
- the contenttype
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |