Package org.apache.cocoon.portal.event.impl

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


        SizeableStatus sizeable = (SizeableStatus) this.getStatus(SizeableStatus.class, ProfileManager.SESSION_STATUS, cid.getCopletData().getName());
        if ( sizeable != null ) {
            SizingStatus sizingstatus = (SizingStatus)this.getStatus(SizingStatus.class, ProfileManager.SESSION_STATUS, cid.getCopletId());
            int status = (sizingstatus == null ? SizingStatus.STATUS_MAXIMIZED : sizingstatus.getStatus());

            SizingStatusEvent event;   

            if (sizeable.isMinimizable() && status != SizingStatus.STATUS_MINIMIZED) {
                event = new SizingStatusEvent(cid, SizingStatus.STATUS_MINIMIZED, sizingstatus);
                XMLUtils.createElement(handler, "minimize-uri", service.getLinkService().getLinkURI(event));
            }

            if (sizeable.isMaximizable() && status != SizingStatus.STATUS_MAXIMIZED) {
                event = new SizingStatusEvent(cid, SizingStatus.STATUS_MAXIMIZED, sizingstatus);
                XMLUtils.createElement(handler, "maximize-uri", service.getLinkService().getLinkURI(event));
            }
            if (status != SizingStatus.STATUS_MINIMIZED) {
                context.invokeNext(layout, service, handler);
            }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.portal.event.impl.SizingStatusEvent

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.