|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.spieleck.pcs.view.View
This class is reponsible for displaying an ActionResult. It transform the xml data of the ActionResult via XSL to HTML (or whatever) and writes it to an OutputStream.
Constructor Summary | |
View()
Creates an instance of View |
|
View(java.io.OutputStream os)
Creates a new instance of view with the given settings |
Method Summary | |
void |
cleanUp()
used to remove this object from the ConfigAdmins list of ConfigUsers This must be done, since otherwise no old Views would be get by GC since ConfigAdmin helds forever an reference to each View object |
java.io.OutputStream |
getOutputStream()
returns the OutputStream of this View |
static boolean |
isUseJTidy()
Getter for property useJTidy. |
void |
output(ActionResult ar,
java.lang.String styleSheetFile)
displays the given ActionResult on this View |
void |
resetConfig()
resets the configuration |
void |
setOutputStream(java.io.OutputStream os)
sets the stream to write on |
protected void |
setProperties(javax.xml.transform.Transformer trans,
java.util.Hashtable h)
sets the Parameters of the given Transformer using the values stored in the given Hashtable |
static void |
setUseJTidy(boolean useJTidy)
Setter for property useJTidy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public View(java.io.OutputStream os) throws java.io.IOException
os
- the OutputStream to write onxml
- the XML that should be used as base for the outputkey
- the key to lookup in the view.properties for getting the
name of the stylesheet to usestyle
- the style of the outputpublic View() throws java.io.IOException
Method Detail |
public void cleanUp()
public void setOutputStream(java.io.OutputStream os)
public java.io.OutputStream getOutputStream()
public void output(ActionResult ar, java.lang.String styleSheetFile) throws ViewException
ar
- the ActionResultstyleSheetFile
- absolute path of the stylesheet to useViewException
- if an exception occurs during transformationprotected void setProperties(javax.xml.transform.Transformer trans, java.util.Hashtable h)
public void resetConfig()
resetConfig
in interface ConfigUser
public static boolean isUseJTidy()
public static void setUseJTidy(boolean useJTidy)
useJTidy
- New value of property useJTidy.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |