Package org.exoplatform.portal.webui.application

Examples of org.exoplatform.portal.webui.application.UIApplication


        ) })
public class UIPagePreview extends UIComponentDecorator {
    public boolean isPageHasApplication() {
        if (uicomponent_ == null)
            return false;
        UIApplication existingApp = uicomponent_.findFirstComponentOfType(UIApplication.class);
        if (existingApp != null)
            return true;

        return false;
    }
View Full Code Here


      public void execute(Event<UIPage> event) throws Exception
      {
         UIPage uiPage = event.getSource();
         String objectId = event.getRequestContext().getRequestParameter(UIComponent.OBJECTID);

         UIApplication uiApp = uiPage.getChildById(objectId);
         if (uiApp == null)
            return;

         /*########################## Save Position ##########################*/
         String posX = event.getRequestContext().getRequestParameter("posX");
         String posY = event.getRequestContext().getRequestParameter("posY");

         if (posX != null)
            uiApp.getProperties().put(UIApplication.locationX, posX);
         if (posY != null)
            uiApp.getProperties().put(UIApplication.locationY, posY);

         //System.out.println("\n\n\n\n\n\n\n\n\n\n\n SAVE POSX: "+posX+"\n SAVE POSY: "+posY+"\n\n\n\n\n\n\n\n\n");
         /*########################## Save ZIndex ##########################*/
         String zIndex = event.getRequestContext().getRequestParameter(UIApplication.zIndex);

         if (zIndex != null)
            uiApp.getProperties().put(UIApplication.zIndex, zIndex);

         /*########################## Save Dimension ##########################*/
         String windowWidth = event.getRequestContext().getRequestParameter("windowWidth");
         String windowHeight = event.getRequestContext().getRequestParameter("windowHeight");

         if (windowWidth != null)
            uiApp.getProperties().put("windowWidth", windowWidth);
         if (windowHeight != null)
            uiApp.getProperties().put("windowHeight", windowHeight);

         //      if(appWidth != null) uiComponent.getProperties().put(UIApplication.appWidth, appWidth);
         //      if(appHeight != null) uiComponent.getProperties().put(UIApplication.appHeight, appHeight);

         //      String applicationHeight = event.getRequestContext().getRequestParameter("applicationHeight");
         //      if(applicationHeight != null) uiComponent.getProperties().put("applicationHeight", applicationHeight);

         /*########################## Save Window status (SHOW / HIDE) ##########################*/
         String appStatus = event.getRequestContext().getRequestParameter(UIApplication.appStatus);
         if (appStatus != null)
            uiApp.getProperties().put(UIApplication.appStatus, appStatus);

         //      if(!uiPage.isModifiable()) return;
         //      Page page = PortalDataMapper.toPageModel(uiPage);
         //      UserPortalConfigService configService = uiPage.getApplicationComponent(UserPortalConfigService.class);
         //      if(page.getChildren() == null) page.setChildren(new ArrayList<Object>());
View Full Code Here

{
   public boolean isPageHasApplication()
   {
      if (uicomponent_ == null)
         return false;
      UIApplication existingApp = uicomponent_.findFirstComponentOfType(UIApplication.class);
      if (existingApp != null)
         return true;

      return false;
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.webui.application.UIApplication

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.