Package com.groiss.gui
Class XHTMLPage
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.AbstractContainer
com.groiss.gui.XHTMLPage
- All Implemented Interfaces:
Component
,Container
,Page
,StreamablePage
,Serializable
,Cloneable
This class creates HTML-Pages from XHTML-Source.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Element
static final String
protected String
protected Document
protected Element
protected String
Fields inherited from class com.groiss.gui.AbstractContainer
components
Fields inherited from class com.groiss.gui.AbstractComponent
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, parent, parentElem, READONLY, root, viewMode
Fields inherited from interface com.groiss.gui.Component
LABELLEDBY
-
Constructor Summary
ConstructorDescriptioncreates a new empty XHTMLPage objectcreates a new XHTMLPage object from a specified template source and builds the JDOM.creates a new XHTMLPage object from a specified template source and builds the JDOM with specified ResourceBundle -
Method Summary
Modifier and TypeMethodDescriptionvoid
Set a header field in the response before writing the page.void
Set a header field in the response before writing the page.void
Set a header field in the response before writing the page.getBody()
Returns null.Returns the content type of the page, for example "text/html".getHead()
Returns the list of http-response-headers to be set on theHttpServletResponse
getTitle()
void
void
void
setContent
(Object o) Does nothing.void
setContentType
(String contentType) void
show()
method for rendering the component as stringMethods 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
addClass, clone, create, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setClass, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, toggleClass, 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
addClass, clone, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, removeAttribute, removeClass, setActionListener, setAttribute, setClass, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, toggleClass, toString
-
Field Details
-
CLASS
- See Also:
-
doc
-
id
-
head
-
body
-
contentType
-
-
Constructor Details
-
XHTMLPage
public XHTMLPage()creates a new empty XHTMLPage object -
XHTMLPage
creates a new XHTMLPage object from a specified template source and builds the JDOM. the required resource-bundles will be determined automatically -
XHTMLPage
creates a new XHTMLPage object from a specified template source and builds the JDOM with specified ResourceBundle- Parameters:
resource
- - the specified resource
-
-
Method Details
-
setPage
-
getDocument
-
init
-
setTitle
-
getTitle
-
setContent
Does nothing.- Specified by:
setContent
in interfaceComponent
- Overrides:
setContent
in classAbstractComponent
- Parameters:
o
- - any object where the string representation is used for rendering
-
getContent
Returns null.- Specified by:
getContent
in interfaceComponent
- Overrides:
getContent
in classAbstractComponent
- Returns:
- nul
-
getContentType
Description copied from interface:Page
Returns the content type of the page, for example "text/html".- Specified by:
getContentType
in interfacePage
- Returns:
- the contents mime type as String
-
setContentType
-
show
Description copied from interface:Component
method for rendering the component as string -
getBody
-
getHead
-
getHeaders
Description copied from interface:Page
Returns the list of http-response-headers to be set on theHttpServletResponse
- Specified by:
getHeaders
in interfacePage
- Returns:
- the http-headers (the value may be one of
String
,Date
orInteger
-
addHeader
Set a header field in the response before writing the page. Please note thatHttpServletResponse.setHeader(String, String)
will be used to set to the new value.- Parameters:
header
- the name of the headervalue
- the header value
-
addHeader
Set a header field in the response before writing the page. Please note thatHttpServletResponse.setDateHeader(String,long)
will be used to set to the new value.- Parameters:
header
- the name of the headervalue
- the header value
-
addHeader
Set a header field in the response before writing the page. Please note thatHttpServletResponse.setIntHeader(String,int)
will be used to set to the new value.- Parameters:
header
- the name of the headervalue
- the header value
-
output
- Specified by:
output
in interfaceStreamablePage
-