com.arsdigita.bebop.demo
Class MySitePage

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.Page
                      extended bycom.arsdigita.bebop.demo.MySitePage
All Implemented Interfaces:
Cloneable, Component, Container, Lockable

public class MySitePage
extends Page

This is a common page for a fictitious MySite. It includes a common header, a footer, and a main "content" area. We override the .generateXML method to add stuff to the main content area.


Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.Page
m_invisible, m_panel
 
Fields inherited from class com.arsdigita.bebop.BlockStylable
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
MySitePage()
           
MySitePage(String s)
           
 
Method Summary
protected  void addContents(Element layout, PageState ps)
           
 void generateXML(PageState ps, Document doc)
          Constructs a DOM or JDOM tree with all components on the page.
 
Methods inherited from class com.arsdigita.bebop.Page
add, add, addActionListener, addClientStylesheet, addComponent, addComponentStateParam, addGlobalStateParam, addRequestListener, buildDocument, children, contains, fireActionEvent, fireRequestEvent, generateXML, generateXMLHelper, get, getComponent, getComponentParameters, getErrorDisplay, getPanel, getParameters, getStateModel, getTitle, getTitle, indexOf, isEmpty, isUsingHttpSession, isVisibleDefault, lock, parameterName, parameterName, prepare, process, process, removeActionListener, removeRequestListener, respond, setErrorDisplay, setPanel, setStyleSheet, setTitle, setTitle, setUsingHttpSession, setVisibleDefault, size, stateContains, stateIndex, stateSize
 
Methods inherited from class com.arsdigita.bebop.BlockStylable
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment
 
Methods inherited from class com.arsdigita.bebop.TextStylable
setBackgroundColor, setColor
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, register, register, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

MySitePage

public MySitePage()

MySitePage

public MySitePage(String s)
Method Detail

generateXML

public void generateXML(PageState ps,
                        Document doc)
Description copied from class: Page
Constructs a DOM or JDOM tree with all components on the page. The tree represents the page that results from the HttpServletRequest kept in the state.

Overrides:
generateXML in class Page
Parameters:
ps - the page state produced by Page.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
doc - the DOM node for the whole Document
See Also:
process

addContents

protected void addContents(Element layout,
                           PageState ps)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC