Examples of FullScreenCopletEvent


Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

            for(int i=0; i<values.length; i++) {
                final String current = values[i];
                Event e = context.getEventConverter().decode(current);
                if ( null != e ) {
                    publisher.publish(e);
                    FullScreenCopletEvent fsce = (FullScreenCopletEvent)e;
                    if ( fsce.getLayout() != null) {
                        service.getLinkService().addEventToLink( e );
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

    /* (non-Javadoc)
     * @see org.apache.cocoon.portal.event.Subscriber#inform(org.apache.cocoon.portal.event.Event)
     */
    public void inform(Event event) {
        FullScreenCopletEvent e = (FullScreenCopletEvent) event;
        final Layout startingLayout = e.getLayout();
        if ( null != startingLayout ) {
            ProfileManager profileManager = null;
            try {
                profileManager = (ProfileManager) this.manager.lookup(ProfileManager.ROLE);
                profileManager.setDefaultLayout( startingLayout );
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

       
        CopletInstanceData cid = ((CopletLayout)layout).getCopletInstanceData();

        Layout fullScreenLayout = (Layout)service.getTemporaryAttribute("DEFAULT_LAYOUT");
        if ( fullScreenLayout != null && fullScreenLayout.getId().equals( layout.getId() )) {
            FullScreenCopletEvent event = new FullScreenCopletEvent( cid, null );
            XMLUtils.createElement(handler, "fullscreen-uri", service.getLinkService().getRefreshLinkURI());
        } else {
            FullScreenCopletEvent event = new FullScreenCopletEvent( cid, layout );
            XMLUtils.createElement(handler, "fullscreen-uri", service.getLinkService().getLinkURI(event));
        }

        context.invokeNext(layout, service, handler);
  }
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

                    XMLUtils.createElement(contenthandler, "maximize-uri", url.toString(event));
                }

                final Layout fullScreenLayout = service.getComponentManager().getProfileManager().getEntryLayout();
                if ( fullScreenLayout != null && fullScreenLayout.equals( layout )) {
                    event = new FullScreenCopletEvent( copletInstanceData, null );
                    PortletURLProviderImpl url = (PortletURLProviderImpl)dip.getPortletURLProvider(window);
                    url.clearParameters();
                    url.setWindowState(WindowState.NORMAL);
                    XMLUtils.createElement(contenthandler, "fullscreen-uri", url.toString(event));
                } else {
                    event = new FullScreenCopletEvent( copletInstanceData, layout );
                    PortletURLProviderImpl url = (PortletURLProviderImpl)dip.getPortletURLProvider(window);
                    url.clearParameters();
                    url.setWindowState(WindowState.MAXIMIZED);
                    XMLUtils.createElement(contenthandler, "fullscreen-uri", url.toString(event));
                }
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

            for(int i=0; i<values.length; i++) {
                final String current = values[i];
                Event e = context.getEventConverter().decode(current);
                if ( null != e ) {
                    publisher.publish(e);
                    FullScreenCopletEvent fsce = (FullScreenCopletEvent)e;
                    if ( fsce.getLayout() != null) {
                        service.getComponentManager().getLinkService().addEventToLink( e );
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

    /* (non-Javadoc)
     * @see org.apache.cocoon.portal.event.Subscriber#inform(org.apache.cocoon.portal.event.Event)
     */
    public void inform(Event event) {
        FullScreenCopletEvent e = (FullScreenCopletEvent) event;
        final Layout startingLayout = (CopletLayout)e.getLayout();
        PortalService portalService = null;
        try {
            portalService = (PortalService) this.manager.lookup(PortalService.ROLE);
            ProfileManager pm = portalService.getComponentManager().getProfileManager();
            final Layout old = pm.getEntryLayout();
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

       
        CopletInstanceData cid = ((CopletLayout)layout).getCopletInstanceData();

        final Layout fullScreenLayout = service.getComponentManager().getProfileManager().getEntryLayout();
        if ( fullScreenLayout != null && fullScreenLayout.equals( layout )) {
            FullScreenCopletEvent event = new FullScreenCopletEvent( cid, null );
            XMLUtils.createElement(handler, "fullscreen-uri", service.getComponentManager().getLinkService().getLinkURI(event));
        } else {
            FullScreenCopletEvent event = new FullScreenCopletEvent( cid, layout );
            XMLUtils.createElement(handler, "fullscreen-uri", service.getComponentManager().getLinkService().getLinkURI(event));
        }

        context.invokeNext(layout, service, handler);
  }
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

            for(int i=0; i<values.length; i++) {
                final String current = values[i];
                Event e = context.getEventConverter().decode(current);
                if ( null != e ) {
                    publisher.publish(e);
                    FullScreenCopletEvent fsce = (FullScreenCopletEvent)e;
                    if ( fsce.getLayout() != null) {
                        service.getComponentManager().getLinkService().addEventToLink( e );
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

    /* (non-Javadoc)
     * @see org.apache.cocoon.portal.event.Subscriber#inform(org.apache.cocoon.portal.event.Event)
     */
    public void inform(Event event) {
        FullScreenCopletEvent e = (FullScreenCopletEvent) event;
        final Layout startingLayout = e.getLayout();
        if ( null != startingLayout ) {
            PortalService portalService = null;
            try {
                portalService = (PortalService) this.manager.lookup(PortalService.ROLE);
                portalService.getComponentManager().getProfileManager().setEntryLayout( startingLayout );
View Full Code Here

Examples of org.apache.cocoon.portal.event.impl.FullScreenCopletEvent

       
        CopletInstanceData cid = ((CopletLayout)layout).getCopletInstanceData();

        Layout fullScreenLayout = (Layout)service.getTemporaryAttribute("DEFAULT_LAYOUT");
        if ( fullScreenLayout != null && fullScreenLayout.equals( layout )) {
            FullScreenCopletEvent event = new FullScreenCopletEvent( cid, null );
            XMLUtils.createElement(handler, "fullscreen-uri", service.getLinkService().getRefreshLinkURI());
        } else {
            FullScreenCopletEvent event = new FullScreenCopletEvent( cid, layout );
            XMLUtils.createElement(handler, "fullscreen-uri", service.getLinkService().getLinkURI(event));
        }

        context.invokeNext(layout, service, handler);
  }
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.