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, com.groiss.storegui.XHTMLForm

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  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_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, outputRoot, 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
 java.lang.Object getContent()
          Returns null.
 java.lang.String getContentType()
          Returns the content type of the page, for example "test/html".
 java.lang.String getTitle()
           
 void setContent(java.lang.Object o)
          Does nothing.
 void setPage(java.lang.String page)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class com.groiss.gui.AbstractContainer
add, get, getAll, getAll, getAllDeep, getByName, getComponents, init, remove, setBrowserMode, substitute
 
Methods inherited from class com.groiss.gui.AbstractComponent
clone, 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, 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.Page
show
 
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, 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
Constructor Detail

XHTMLPage

public XHTMLPage()
creates a new empty XHTMLPage object


XHTMLPage

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

Throws:
ApplicationException

XHTMLPage

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

Parameters:
resource - - the specified resource
Throws:
ApplicationException
Method Detail

setPage

public void setPage(java.lang.String page)
             throws ApplicationException
Throws:
ApplicationException

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
Specified by:
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
Specified by:
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


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.