The mutable render state is available through certain portlet response and portlet URL interfaces.
When changed on one of these interfaces, the modified render state becomes active according to the rules of the originating object. If the render state is modified on a response, it becomes active for subsequent portlet render phases. If the render state is modified on a URL, it becomes active when the URL containing the modified state is activated.
For example, the methods defined here can be used to set a new portlet mode and
render parameters on a PortletURL object.
When the portlet URL containing this modified render state is activated,
the portlet will have the portlet mode and render parameter values set as they
were applied to the portlet URL.
RenderState, MutablePortletParameters
| Modifier and Type | Method and Description |
|---|---|
| public MutableRenderParameters | Returns: aMutableRenderParameters object representing
the private and public render parametersRedeclares javax.
Gets the mutable render parameters.
|
| public void | setPortletMode(PortletMode
the new portlet mode portletMode)
Sets the portlet mode of a portlet to the given portlet mode.
|
| public void | setWindowState(WindowState
the new portlet window state windowState)
Sets the window state of a portlet to the given window state.
|
| getRenderParameters | back to summary |
|---|---|
| public MutableRenderParameters getRenderParameters() Redeclares javax.
Gets the mutable render parameters.
| |
| setPortletMode | back to summary |
|---|---|
| public void setPortletMode(PortletMode portletMode) throws PortletModeException
Sets the portlet mode of a portlet to the given portlet mode.
Possible values are the standard portlet modes and any custom portlet modes supported by the portal and the portlet. Portlets must declare in the deployment descriptor the portlet modes they support for each markup type. Standard portlet modes are:
Not more than one portlet mode can be set. If more than one portlet mode is set, only the last one set is valid. Note The portlet may still be called in a different portlet mode in the next render call, depending on the portlet container / portal.
| |
| setWindowState | back to summary |
|---|---|
| public void setWindowState(WindowState windowState) throws WindowStateException
Sets the window state of a portlet to the given window state.
Possible values are the standard window states and any custom window states supported by the portal and the portlet. Standard window states are:
Not more than one window state can be set. If more than one window state is set, only the last one set is valid.
| |