|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.gui.AbstractComponent
com.groiss.gui.AbstractContainer
com.groiss.gui.XHTMLPage
public class XHTMLPage
This class creates HTML-Pages from XHTML-Source.
| Field Summary | |
|---|---|
protected org.jdom.Element |
body
|
static String |
CLASS
|
protected String |
contentType
|
protected org.jdom.Document |
doc
|
protected org.jdom.Element |
head
|
protected String |
id
|
| Fields inherited from class com.groiss.gui.AbstractContainer |
|---|
components |
| Fields inherited from class com.groiss.gui.AbstractComponent |
|---|
actions, ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, outputter, parent, parentElem, READONLY, root, viewMode |
| Constructor Summary | |
|---|---|
XHTMLPage()
creates a new empty XHTMLPage object |
|
XHTMLPage(String resource)
creates a new XHTMLPage object from /* a specified template source and builds the JDOM |
|
XHTMLPage(String file,
Resource resource)
creates a new XHTMLPage object from a specified template source and builds the JDOM with specified ResourceBundle |
|
| Method Summary | |
|---|---|
org.jdom.Element |
getBody()
|
Object |
getContent()
Returns null. |
String |
getContentType()
Returns the content type of the page, for example "test/html". |
org.jdom.Document |
getDocument()
|
org.jdom.Element |
getHead()
|
String |
getTitle()
|
void |
init(org.jdom.Document doc)
|
void |
setContent(Object o)
Does nothing. |
void |
setContentType(String contentType)
|
XHTMLPage |
setPage(String page)
|
void |
setTitle(String title)
|
String |
show()
method for rendering the component as string |
| Methods inherited from class com.groiss.gui.AbstractContainer |
|---|
add, get, getAll, getAll, getAllDeep, getByName, getComponents, getWithParent, init, remove, setBrowserMode, substitute |
| Methods inherited from class com.groiss.gui.AbstractComponent |
|---|
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, removeAttribute, setActionListener, setAttribute, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.groiss.gui.Component |
|---|
clone, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, removeAttribute, setActionListener, setAttribute, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, toString |
| Field Detail |
|---|
public static final String CLASS
protected org.jdom.Document doc
protected String id
protected org.jdom.Element head
protected org.jdom.Element body
protected String contentType
| Constructor Detail |
|---|
public XHTMLPage()
public XHTMLPage(String resource)
public XHTMLPage(String file,
Resource resource)
resource - - the specified resource| Method Detail |
|---|
public XHTMLPage setPage(String page)
public org.jdom.Document getDocument()
public void init(org.jdom.Document doc)
public void setTitle(String title)
public String getTitle()
public void setContent(Object o)
setContent in interface ComponentsetContent in class AbstractComponento - - any object where the string representation is used for renderingpublic Object getContent()
getContent in interface ComponentgetContent in class AbstractComponentpublic String getContentType()
Page
getContentType in interface Pagepublic void setContentType(String contentType)
public String show()
Component
show in interface Componentshow in interface Pageshow in class AbstractComponentpublic org.jdom.Element getBody()
public org.jdom.Element getHead()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||