|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface specifying Component-like behavior for a PortletRenderer,
insofar as XML generation is concerned. Since a PortletRenderer
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 PortletRenderer to produce
XML just as other Components do.
The PortletRenderer 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 PortletRenderer
returned.
Note that implementers of PortletRenderers will ordinarily want
to extend AbstractPortletRenderer since it provides a
default XML frame for portlets, one that the Portal stylesheet
knows to transform.
Portal,
PortalModel,
PortalModelBuilder,
AbstractPortletRenderer| Field Summary | |
static String |
versionId
|
| Method Summary | |
void |
generateXML(PageState pageState,
Element parentElement)
Build an XML fragment and attach it to this component's parent. |
Object |
getCacheKey()
|
boolean |
isDirty()
|
| Field Detail |
public static final String versionId
| Method Detail |
public void generateXML(PageState pageState,
Element parentElement)
Label. Note, however, that
it is preferable to extend AbstractPortlet since it provides a
default "XML wrapper" for portlets.
pageState - the PageState of the current request.parentElement - the element to which to attach the XML this
method creates.public boolean isDirty()
public Object getCacheKey()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||