|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 java.lang.String |
CLASS
|
protected java.lang.String |
contentType
|
protected org.jdom.Document |
doc
|
protected org.jdom.Element |
head
|
protected java.lang.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(java.lang.String resource)
creates a new XHTMLPage object from /* a specified template source and builds the JDOM |
|
XHTMLPage(java.lang.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()
|
java.lang.Object |
getContent()
Returns null. |
java.lang.String |
getContentType()
Returns the content type of the page, for example "test/html". |
org.jdom.Document |
getDocument()
|
org.jdom.Element |
getHead()
|
java.lang.String |
getTitle()
|
void |
init(org.jdom.Document doc)
|
void |
setContent(java.lang.Object o)
Does nothing. |
void |
setContentType(java.lang.String contentType)
|
XHTMLPage |
setPage(java.lang.String page)
|
void |
setTitle(java.lang.String title)
|
java.lang.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 java.lang.String CLASS
protected org.jdom.Document doc
protected java.lang.String id
protected org.jdom.Element head
protected org.jdom.Element body
protected java.lang.String contentType
Constructor Detail |
---|
public XHTMLPage()
public XHTMLPage(java.lang.String resource)
public XHTMLPage(java.lang.String file, Resource resource)
resource
- - the specified resourceMethod Detail |
---|
public XHTMLPage setPage(java.lang.String page)
public org.jdom.Document getDocument()
public void init(org.jdom.Document doc)
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setContent(java.lang.Object o)
setContent
in interface Component
setContent
in class AbstractComponent
o
- - any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
public java.lang.String getContentType()
Page
getContentType
in interface Page
public void setContentType(java.lang.String contentType)
public java.lang.String show()
Component
show
in interface Component
show
in interface Page
show
in class AbstractComponent
public 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 |