Package net.sf.jportlet.impl

Source Code of net.sf.jportlet.impl.PortletWindowImpl

/*
* 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;
    }
}
TOP

Related Classes of net.sf.jportlet.impl.PortletWindowImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.