|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface specifying Component
-like behavior for a
Portlet, insofar as XML generation is concerned. Since a Portlet
gets its state only from PortalModel
, it is stateless from the
Bebop point of view and does not need Component's state management.
We do still, however, want Portlet to produce XML just as other
Components do.
The Portlet interface is used in Portal
when it builds a
new PortalModel
and fetches a set of Portlets. Portal
calls generateXML(com.arsdigita.bebop.PageState, com.arsdigita.xml.Element)
on each Portlet returned.
Implementers of Portlets will ordinarily want to
extend AbstractPortlet
since it provides a default XML
frame for portlets that the Portal stylesheet knows to
transform.
Portal
,
PortalModel
,
PortalModelBuilder
,
AbstractPortlet
Field Summary | |
static String |
versionId
|
Method Summary | |
void |
generateXML(PageState pageState,
Element parentElement)
Builds an XML fragment and attaches it to this component's parent. |
Field Detail |
public static final String versionId
Method Detail |
public void generateXML(PageState pageState, Element parentElement)
Label
. However, it is preferable to
extend AbstractPortlet
, since it provides a default "XML
wrapper" for portlets.
pageState
- the PageState of the current requestparentElement
- the element to which to attach the XML this
method creates
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |