|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletContext
This interface represents one portlet on a page (-region).
Based on the currently requested page, the portal determines the portlets that need to be rendered. Before calling the portlet container for each of them, the layout strategy has a chance to change some of the behavior. The PortletContext is the way for the portal to communicate the state of an individual portlet to the layout strategy.
LayoutStrategy
,
StrategyContext
Method Summary | |
---|---|
int |
getOrder()
Get the order of the portlet in its region. |
java.lang.String |
getPortletName()
Get the name of th portlet this context represents. |
java.lang.String |
getRegionName()
Get name of the page region this portlet is assigned to. |
java.util.Set |
getSupportedWindowStates()
Get the set of window states allowed by this portlet. |
WindowState |
getWindowState()
Get the current portlet window state of this portlet instance. |
boolean |
isSupportedWindowState(WindowState windowState)
Check if the provided WindowState is allowed for this portlet. |
void |
setOrder(int order)
Set the sort order of this portlet in its region. |
void |
setRegionName(java.lang.String regionName)
Assign the portlet to a different region of the page. |
Method Detail |
---|
java.lang.String getPortletName()
WindowState getWindowState()
WindowState
boolean isSupportedWindowState(WindowState windowState)
windowState
- the window state to check against the allowed ones
java.lang.IllegalArgumentException
- if the window state is nulljava.util.Set getSupportedWindowStates()
java.lang.String getRegionName()
void setRegionName(java.lang.String regionName)
In order to assign this portlet to another region, the region must be one of the available regions of the current page. The change will not be persisted outside the current request.
regionName
- the name of the region to re-assign the portlet toStrategyContext.getRegions()
int getOrder()
void setOrder(int order)
Note: this change is only valid for the current request, and will not be persisted
order
- the sort order to assign to this portlet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |