|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.Page
com.arsdigita.cms.dispatcher.CMSPage
A CMSPage is a Bebop Page
implementation of the ResourceHandler
interface.
It stores the current ContentSection
and, if applicable, the ContentItem
in the
page state as request local objects. Components
that are part of the CMSPage may access these objects by
calling:
getContentSection(PageState state);
Field Summary | |
static String |
ASSETS
The global assets URL stub XML parameter name. |
static String |
CMS_XML_NS
Deprecated. use com.arsdigita.cms.CMS.CMS_XML_NS instead |
static String |
PAGE_CLASS
The XML page class. |
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 | |
CMSPage()
|
|
CMSPage(com.arsdigita.bebop.Label title)
|
|
CMSPage(com.arsdigita.bebop.Label title,
com.arsdigita.bebop.Container panel)
|
|
CMSPage(String title)
|
|
CMSPage(String title,
com.arsdigita.bebop.Container panel)
|
Method Summary | |
protected void |
buildPage()
Builds the page. |
void |
dispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.arsdigita.dispatcher.RequestContext actx)
Services the Bebop page. |
protected com.arsdigita.xml.Element |
generateXMLHelper(com.arsdigita.bebop.PageState ps,
com.arsdigita.xml.Document parent)
|
ContentItem |
getContentItem(javax.servlet.http.HttpServletRequest request)
Deprecated. use com.arsdigita.cms.CMS.getContext().getContentItem() instead |
ContentItem |
getContentItem(com.arsdigita.bebop.PageState state)
Deprecated. use com.arsdigita.cms.CMS.getContext().getContentItem() instead |
ContentSection |
getContentSection(javax.servlet.http.HttpServletRequest request)
Deprecated. use com.arsdigita.cms.CMS.getContext().getContentSection() instead |
ContentSection |
getContentSection(com.arsdigita.bebop.PageState state)
Deprecated. use com.arsdigita.cms.CMS.getContext().getContentSection() instead |
static com.arsdigita.kernel.User |
getCurrentUser(com.arsdigita.bebop.PageState state)
Deprecated. Use Kernel.getContext().getParty() if possible and Web.getContext().getUser() if necessary. |
String |
getXMLParameter(String name)
Fetches the value of the XML parameter. |
void |
init()
Finishes and locks the page. |
void |
setXMLParameter(String name,
String value)
Set an XML parameter. |
Methods inherited from class com.arsdigita.bebop.Page |
add, add, addActionListener, addClientStylesheet, addComponent, addComponentStateParam, addGlobalStateParam, addRequestListener, buildDocument, children, contains, fireActionEvent, fireRequestEvent, generateXML, generateXML, 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 |
public static final String versionId
public static final String CMS_XML_NS
public static final String ASSETS
public static final String PAGE_CLASS
Constructor Detail |
public CMSPage()
public CMSPage(String title)
public CMSPage(String title, com.arsdigita.bebop.Container panel)
public CMSPage(com.arsdigita.bebop.Label title)
public CMSPage(com.arsdigita.bebop.Label title, com.arsdigita.bebop.Container panel)
Method Detail |
protected void buildPage()
public void init()
Dispatcher
that initializes this page.
init
in interface ResourceHandler
public String getXMLParameter(String name)
name
- The parameter name
public void setXMLParameter(String name, String value)
name
- The parameter namevalue
- The parameter valuepublic ContentSection getContentSection(javax.servlet.http.HttpServletRequest request)
getContentSection
in interface ResourceHandler
request
- The HTTP request
public ContentSection getContentSection(com.arsdigita.bebop.PageState state)
state
- The page state
public ContentItem getContentItem(javax.servlet.http.HttpServletRequest request)
getContentItem
in interface ResourceHandler
request
- The HTTP request
public ContentItem getContentItem(com.arsdigita.bebop.PageState state)
state
- The page state
public void dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.arsdigita.dispatcher.RequestContext actx) throws IOException, javax.servlet.ServletException
dispatch
in interface com.arsdigita.dispatcher.Dispatcher
request
- The servlet request objectresponse
- the servlet response objectactx
- The request context
IOException
javax.servlet.ServletException
protected com.arsdigita.xml.Element generateXMLHelper(com.arsdigita.bebop.PageState ps, com.arsdigita.xml.Document parent)
public static com.arsdigita.kernel.User getCurrentUser(com.arsdigita.bebop.PageState state)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |