public class RenderStateWrapper extends Object implements RenderState
RenderStateWrapper
provides a convenient
implementation of the RenderState
interface
that can be subclassed by developers.
This class implements the Wrapper or Decorator pattern.
Methods default to calling through to the wrapped request object.
Modifier and Type | Field and Description |
---|---|
protected RenderState |
wrapped |
Constructor and Description |
---|
RenderStateWrapper(RenderState wrapped) |
Modifier and Type | Method and Description |
---|---|
PortletMode |
getPortletMode()
Returns the current portlet mode of the portlet.
|
RenderParameters |
getRenderParameters()
Gets the render parameters.
|
WindowState |
getWindowState()
Returns the current window state of the portlet.
|
RenderState |
getWrapped()
Gets the wrapped object.
|
void |
setWrapped(RenderState wrapped)
Sets the wrapped object.
|
protected RenderState wrapped
public RenderStateWrapper(RenderState wrapped)
wrapped
- the wrapped object to set.IllegalArgumentException
- if the RenderState is null.public RenderState getWrapped()
public void setWrapped(RenderState wrapped)
wrapped
- the wrapped object to set.IllegalArgumentException
- if the RenderState is null.public RenderParameters getRenderParameters()
RenderState
getRenderParameters
in interface RenderState
RenderParameters
object representing
the private and public render parametersPortletParameters
,
RenderParameters
public PortletMode getPortletMode()
RenderState
getPortletMode
in interface RenderState
PortletMode.UNDEFINED
is returned.PortletMode
public WindowState getWindowState()
RenderState
getWindowState
in interface RenderState
WindowState.UNDEFINED
is returned.WindowState
Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.