/*
* Created on 20-Mar-2003
*/
package net.sf.jportlet.impl;
import net.sf.jportlet.portlet.PortletURI;
import net.sf.jportlet.portlet.PortletWindow;
/**
* Implementation of {@link net.sf.jportlet.portlet.PortletWindow}
*
* @author <a href="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
*/
public class PortletWindowImpl
implements PortletWindow
{
//~ Instance fields --------------------------------------------------------
private PortletWindow.State _state;
//~ Constructors -----------------------------------------------------------
public PortletWindowImpl( PortletRequestImpl request )
{
PortletURI uri = request.getPortletURI( );
if ( uri != null )
{
_state = uri.getState( );
}
}
//~ Methods ----------------------------------------------------------------
/**
* @see net.sf.jportlet.portlet.PortletWindow#getState()
*/
public State getState( )
{
return ( _state != null )
? _state
: PortletWindow.State.NORMAL;
}
}