com.groiss.gui
Class XHTMLPage

java.lang.Object
  extended by com.groiss.gui.AbstractComponent
      extended by com.groiss.gui.AbstractContainer
          extended by com.groiss.gui.XHTMLPage
All Implemented Interfaces:
Component, Container, Page, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
TabbedDialog

public class XHTMLPage
extends AbstractContainer
implements Page

This class creates HTML-Pages from XHTML-Source.

See Also:
Serialized Form

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

CLASS

public static final java.lang.String CLASS
See Also:
Constant Field Values

doc

protected org.jdom.Document doc

id

protected java.lang.String id

head

protected org.jdom.Element head

body

protected org.jdom.Element body

contentType

protected java.lang.String contentType
Constructor Detail

XHTMLPage

public XHTMLPage()
creates a new empty XHTMLPage object


XHTMLPage

public XHTMLPage(java.lang.String resource)
creates a new XHTMLPage object from /* a specified template source and builds the JDOM


XHTMLPage

public XHTMLPage(java.lang.String file,
                 Resource resource)
creates a new XHTMLPage object from a specified template source and builds the JDOM with specified ResourceBundle

Parameters:
resource - - the specified resource
Method Detail

setPage

public XHTMLPage setPage(java.lang.String page)

getDocument

public org.jdom.Document getDocument()

init

public void init(org.jdom.Document doc)

setTitle

public void setTitle(java.lang.String title)

getTitle

public java.lang.String getTitle()

setContent

public void setContent(java.lang.Object o)
Does nothing.

Specified by:
setContent in interface Component
Overrides:
setContent in class AbstractComponent
Parameters:
o - - any object where the string representation is used for rendering

getContent

public java.lang.Object getContent()
Returns null.

Specified by:
getContent in interface Component
Overrides:
getContent in class AbstractComponent
Returns:
nul

getContentType

public java.lang.String getContentType()
Description copied from interface: Page
Returns the content type of the page, for example "test/html".

Specified by:
getContentType in interface Page
Returns:
the contents mime type as String

setContentType

public void setContentType(java.lang.String contentType)

show

public java.lang.String show()
Description copied from interface: Component
method for rendering the component as string

Specified by:
show in interface Component
Specified by:
show in interface Page
Overrides:
show in class AbstractComponent
Returns:
- the rendered component as String

getBody

public org.jdom.Element getBody()

getHead

public org.jdom.Element getHead()


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.