Examples of SizingStatus


Examples of org.apache.cocoon.portal.coplet.status.SizingStatus

    /* (non-Javadoc)
     * @see org.apache.cocoon.portal.event.Subscriber#inform(org.apache.cocoon.portal.event.Event)
     */
    public void inform(Event event) {
        SizingStatusEvent statusEvent = (SizingStatusEvent) event;
        SizingStatus target = statusEvent.getStatus();
        ProfileManager profileManager = null;
        try {
            profileManager = (ProfileManager) this.componentManager.lookup(ProfileManager.ROLE);
            target = new SizingStatus();
            profileManager.setAspectStatus(ProfileManager.SESSION_STATUS,
                                           statusEvent.getCopletInstanceData().getCopletId(),
                                           target);
        } catch (ComponentException ce) {
            // ignore
        } finally {
            this.componentManager.release(profileManager);
        }
       
        int action = statusEvent.getAction();

        target.setStatus(action);
    }
View Full Code Here

Examples of org.apache.cocoon.portal.coplet.status.SizingStatus

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

        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);
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.