Package org.apache.jetspeed.portal.controls

Examples of org.apache.jetspeed.portal.controls.PortletAction


 
        boolean minimized = (!restoring && (state.isMinimized( rundata ) || state2 == WindowState.MINIMIZED));
       
        if (!customized && fusion.getAllowEdit(rundata))// state.allowCustomize(rundata))
        {
            actions.add( new PortletAction("customize", "Customize") );
        }
        if (state.allowPrintFriendly(rundata))
        {
            actions.add( new PortletAction("print", "Print Friendly Format") );
        }

        if (!helped && fusion.getAllowInfo(rundata))//state.allowInfo(rundata))
        {
            actions.add( new PortletAction("info", "Information") );
        }
                  
        if (state.allowClose(rundata))
        {
            actions.add( new PortletAction("close", "Close") );
        }
       
        if (!restoring && (maximized || customized || helped || minimized))
        {
            actions.add( new PortletAction("restore", "Restore") );
        }
       
       if (!minimized && state.allowMinimize( rundata ))
        {
            actions.add( new PortletAction("minimize", "Minimize") );
        }

        if (!maximized && state.allowMaximize( rundata ))
        {
            actions.add( new PortletAction("maximize", "Maximize") );
        }
       
        return createActionList(actions, jdata, portlet);
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.portal.controls.PortletAction

Copyright © 2018 www.massapicom. 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.