Examples of UIWindow


Examples of org.gatein.mop.api.workspace.ui.UIWindow

        PageInfo pageInfo = pageInfos.get(pageId);
        String uuid = pageInfo.getWindowUUID(windowId);
        ParameterValidation.throwIllegalArgExceptionIfNull(uuid, "UUID for " + windowId);

        // get the window
        UIWindow window = structureAccess.getWindowFrom(uuid);

        // construct the new customization state
        WSRP wsrp = new WSRP();
        String portletId = portletContext.getId();
        wsrp.setPortletId(portletId);
        if (portletContext instanceof StatefulPortletContext) {
            StatefulPortletContext context = (StatefulPortletContext) portletContext;
            if (PortletStateType.OPAQUE.equals(context.getType())) {
                wsrp.setState((byte[]) context.getState());
            } else {
                throw new IllegalArgumentException("Don't know how to deal with state: " + context.getState());
            }
        }

        // destroy existing customization as otherwise re-customizing will fail
        Customization<?> customization = window.getCustomization();
        customization.destroy();

        // and re-customize
        window.customize(WSRP.CONTENT_TYPE, portletId, wsrp);

        // Change the window's name so that it's less confusing to users
        Described described = window.adapt(Described.class);
        String newName = exportedPortletHandle + " (remote)";
        described.setName(newName); // should be the same as ApplicationRegistryService.REMOTE_DISPLAY_NAME_SUFFIX

        // update window mappings
        pageInfo.updateWindowName(windowId, newName);
View Full Code Here

Examples of org.gatein.mop.api.workspace.ui.UIWindow

            }

            //
            if (srcChild instanceof UIWindow)
            {
               UIWindow srcWindow = (UIWindow)srcChild;
               UIWindow dstWindow = (UIWindow)dstChild;
               Customization<?> customization = srcWindow.getCustomization();
               ContentType contentType = customization.getType();
               String contentId = customization.getContentId();
               Customization parent = customization.getParent();
               Customization dstParent = null;
               if (parent != null)
               {
                  WorkspaceCustomizationContext parentCtx = (WorkspaceCustomizationContext)parent.getContext();
                  String name = parentCtx.nameOf(parent);
                  if (parentCtx == srcPage)
                  {
                     dstParent = dstPage.getCustomizationContext().getCustomization(name);
                     if (dstParent == null)
                     {
                        Object state = parent.getVirtualState();
                        dstParent = dstPage.getCustomizationContext().customize(name, contentType, contentId, state);
                     }
                  }
                  if (dstParent != null)
                  {
                     Object state = customization.getState();
                     Customization dstCustomization = dstWindow.customize(dstParent);
                     dstCustomization.setState(state);
                  }
                  else
                  {
                     Object state = customization.getVirtualState();
                     dstWindow.customize(contentType, contentId, state);
                  }
               }
               else
               {
                  Object state = customization.getVirtualState();
                  dstWindow.customize(contentType, contentId, state);
               }
            }
            else if (srcChild instanceof UIContainer)
            {
               UIContainer srcContainer = (UIContainer)srcChild;
View Full Code Here

Examples of org.gatein.mop.api.workspace.ui.UIWindow

               mo = load(srcContainer, dstChildren);
            }
         }
         else if (component instanceof UIWindow)
         {
            UIWindow window = (UIWindow)component;
            ApplicationData application = load(window);
            mo = application;
         }
         else if (component instanceof UIBody)
         {
View Full Code Here

Examples of org.gatein.mop.api.workspace.ui.UIWindow

               String id = uniqueId.substring(1);

               // It's another window, we get its customization
               if (!dst.getObjectId().equals(id))
               {
                  UIWindow window = session.findObjectById(ObjectType.WINDOW, id);
                  Customization<?> windowCustomization = window.getCustomization();
                  if (windowCustomization.getType().equals(contentType))
                  {
                     customization = windowCustomization;
                  }
               }
View Full Code Here

Examples of org.robovm.apple.uikit.UIWindow

    Gdx.input = this.input;
    Gdx.net = this.net;

    this.input.setupPeripherals();

    this.uiWindow = new UIWindow(UIScreen.getMainScreen().getBounds());
    this.uiWindow.setRootViewController(this.graphics.viewController);
    this.uiWindow.makeKeyAndVisible();
    Gdx.app.debug("IOSApplication", "created");
    return true;
  }
View Full Code Here

Examples of org.robovm.apple.uikit.UIWindow

    Gdx.input = this.input;
    Gdx.net = this.net;

    this.input.setupPeripherals();

    this.uiWindow = new UIWindow(UIScreen.getMainScreen().getBounds());
    this.uiWindow.setRootViewController(this.graphics.viewController);
    this.uiWindow.makeKeyAndVisible();
    Gdx.app.debug("IOSApplication", "created");
    return true;
  }
View Full Code Here

Examples of org.robovm.apple.uikit.UIWindow

    Gdx.input = this.input;
    Gdx.net = this.net;

    this.input.setupPeripherals();

    this.uiWindow = new UIWindow(UIScreen.getMainScreen().getBounds());
    this.uiWindow.setRootViewController(this.graphics.viewController);
    this.uiWindow.makeKeyAndVisible();
    Gdx.app.debug("IOSApplication", "created");
    return true;
  }
View Full Code Here

Examples of org.robovm.apple.uikit.UIWindow

    Gdx.input = this.input;
    Gdx.net = this.net;

    this.input.setupPeripherals();

    this.uiWindow = new UIWindow(UIScreen.getMainScreen().getBounds());
    this.uiWindow.setRootViewController(this.graphics.viewController);
    this.uiWindow.makeKeyAndVisible();
    Gdx.app.debug("IOSApplication", "created");
    return true;
  }
View Full Code Here

Examples of org.robovm.cocoatouch.uikit.UIWindow

    Gdx.input = this.input;
    Gdx.net = this.net;

    this.input.setupPeripherals();

    this.uiWindow = new UIWindow(UIScreen.getMainScreen().getBounds());
    this.uiWindow.setRootViewController(this.graphics.viewController);
    this.uiWindow.makeKeyAndVisible();
    Gdx.app.debug("IOSApplication", "created");
    return true;
  }
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.