Package org.apache.jetspeed.services.information

Examples of org.apache.jetspeed.services.information.PortletURLProviderImpl


                                                                                                                                                                                       // HARD-CODED
                                                                                                                                                                                       // .gif

        PortletEntity entity = getCurrentPortletEntity();

        PortletURLProviderImpl url = new PortletURLProviderImpl(getRequestContext(), windowAccess
                .getPortletWindow(getCurrentFragment()));
        switch (actionId)
        {
            case JetspeedActions.INDEX_MAXIMIZE :
                url.setWindowState(WindowState.MAXIMIZED);
                break;
            case JetspeedActions.INDEX_MINIMIZE :
                url.setWindowState(WindowState.MINIMIZED);
                break;
            case JetspeedActions.INDEX_NORMAL :
                url.setWindowState(WindowState.NORMAL);
                break;
            case JetspeedActions.INDEX_VIEW :
                url.setPortletMode(PortletMode.VIEW);
                break;
            case JetspeedActions.INDEX_EDIT :
                url.setPortletMode(PortletMode.EDIT);
                break;
            case JetspeedActions.INDEX_HELP :
                url.setPortletMode(PortletMode.HELP);
                break;
        }

        action.setAction(url.toString());
        actions.add(action);
        return action;

    }
View Full Code Here


                                                      actionName,
                                    "content/images/" +  actionName + ".gif"); // TODO: HARD-CODED .gif
       
        PortletEntity entity = getCurrentPortletEntity();
       
        PortletURLProviderImpl url =
            new PortletURLProviderImpl(Jetspeed.getCurrentRequestContext(),
                                       windowAccess.getPortletWindow(getCurrentFragment()));
        switch (actionId)
        {
            case JetspeedActions.INDEX_MAXIMIZE:
                url.setWindowState(WindowState.MAXIMIZED);
                break;
            case JetspeedActions.INDEX_MINIMIZE:
                url.setWindowState(WindowState.MINIMIZED);
                break;
            case JetspeedActions.INDEX_NORMAL:
                url.setWindowState(WindowState.NORMAL);
                break;
            case JetspeedActions.INDEX_VIEW:
                url.setPortletMode(PortletMode.VIEW);
                break;
            case JetspeedActions.INDEX_EDIT:
                url.setPortletMode(PortletMode.EDIT);
                break;
            case JetspeedActions.INDEX_HELP:
                url.setPortletMode(PortletMode.HELP);
                break;                               
        }
       
        action.setAction(url.toString());
        actions.add(action);
        return action;
       
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.services.information.PortletURLProviderImpl

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.