|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.view.tools.PresentationTool
public class PresentationTool
View tool for accessing the presentation system. TODO: write a good documentation, it's important here... For now, see org.activemath.webapp.controller.ViewBook controller for how to use it.
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
PresentationTool(String fmt,
String lang,
AppModel model,
HttpServletResponse servletResponse)
|
|
| Method Summary | |
|---|---|
boolean |
doesRendering()
Say if assembly/layout rendering is needed for the current format. |
String |
getAssemblyFormat()
|
Formatter |
getAssemblyFormatter()
Returns the assembly formatter for this tool. |
String |
getAssemblyTemplate()
|
String |
getContentType()
Return the content type for the current Formatter. |
String |
getLang()
|
String |
getLayoutFormat()
|
Map |
getModel()
|
ServletResponse |
getServletResponse()
|
TransformTool |
getTransformer()
|
Map |
getXslParams()
Delegate for Formatter.getXslParams() Return the Map with the parameters used for the XSL transformation. |
void |
render()
Render a layout format to the Servlet's OutputStream A layout format is data (eg. |
void |
render(OutputStream outstream)
|
void |
setAssemblyTemplate(String path)
Set the path for the Velocity template to use for assembly. |
void |
setXslFilename(String xslFilename)
Delegate for Formatter.setXslFilename() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
| Constructor Detail |
|---|
public PresentationTool(String fmt,
String lang,
AppModel model,
HttpServletResponse servletResponse)
| Method Detail |
|---|
public boolean doesRendering()
public void render()
throws Exception
Exception
public void render(OutputStream outstream)
throws Exception
Exceptionpublic Map getXslParams()
public void setXslFilename(String xslFilename)
xslFilename - to use by the formatter for XSL transformationpublic String getContentType()
public Map getModel()
public Formatter getAssemblyFormatter()
This is either usual default formatter, or the specific assembly formatter if layout format is different.
public String getLayoutFormat()
public String getAssemblyFormat()
public TransformTool getTransformer()
public ServletResponse getServletResponse()
public String getAssemblyTemplate()
public void setAssemblyTemplate(String path)
public String getLang()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||