Examples of CopletInstanceData


Examples of org.apache.cocoon.portal.coplet.CopletInstanceData

    /* (non-Javadoc)
     * @see org.apache.pluto.services.information.PortletActionProvider#changePortletMode(PortletWindow, PortletMode)
     */
    public void changePortletMode(PortletMode mode) {
        if ( mode != null ) {
            final CopletInstanceData cid = ((PortletEntityImpl)portletWindow.getPortletEntity()).getCopletInstanceData();
            PortletMode pm = (PortletMode) cid.getAttribute("portlet-mode");
            if ( (pm == null && !mode.equals(PortletMode.VIEW))
                || (pm != null && !pm.equals(mode)) ) {
                if ( pm != null ) {
                    cid.setAttribute("previous-portlet-mode", pm);
                }
                cid.setAttribute("portlet-mode", mode);
            }
        }
    }
View Full Code Here
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.