Package org.exoplatform.portal.webui.container

Examples of org.exoplatform.portal.webui.container.UIContainer


   {
      UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
      uiWorkingWS.setRenderedChild(UIPortal.class);
      UIPortal uiPortal = uiWorkingWS.findFirstComponentOfType(UIPortal.class);

      UIContainer uiContainer = Util.findUIComponent(uiPortal, UIContainer.class, UIPage.class);
      UIPage uiPage = uiPortal.findFirstComponentOfType(UIPage.class);
      UIPortlet uiPortlet = Util.findUIComponent(uiPortal, UIPortlet.class, UIPage.class);

      String name = "";
      if (uiContainer != null && uiContainer.isShowEditControl())
         name = "'UIContainer'";
      else if (uiPage != null && uiPage.isShowEditControl())
         name = "'UIPage'";
      else if (uiPortlet != null && uiPortlet.isShowEditControl())
         name = "'UIPortlet'";
View Full Code Here


      UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
      uiWorkingWS.setRenderedChild(UIPortalToolPanel.class);
      UIPortalToolPanel uiPortalToolPanel = uiWorkingWS.findFirstComponentOfType(UIPortalToolPanel.class);

      UIPage uiPage = uiPortalToolPanel.findFirstComponentOfType(UIPage.class);
      UIContainer uiContainer = uiPage.findFirstComponentOfType(UIContainer.class);
      UIPortlet uiPortlet = uiPage.findFirstComponentOfType(UIPortlet.class);

      String name = "";
      if (uiContainer != null && uiContainer.isShowEditControl())
         name = "UIContainer";
      else if (uiPortlet != null && uiPortlet.isShowEditControl())
         name = "UIPortlet";

      getPortalRequestContext().getJavascriptManager().addCustomizedOnLoadScript(
View Full Code Here

   {
      if (clazz == null)
         return;
      UIPortalApplication portalApp = getUIPortalApplication();
      UIEditInlineWorkspace uiEditWS = portalApp.findFirstComponentOfType(UIEditInlineWorkspace.class);
      UIContainer uiParent = null;

      UIComponent uiComponent = uiEditWS.getUIComponent();
      if (uiComponent instanceof UIPortal)
      {
         UIPortal uiPortal = (UIPortal)uiComponent;
View Full Code Here

   {
      if (clazz == null)
         return;
      UIPortalApplication portalApp = getUIPortalApplication();
      UIEditInlineWorkspace uiEditWS = portalApp.findFirstComponentOfType(UIEditInlineWorkspace.class);
      UIContainer uiParent = null;

      UIComponent uiComponent = uiEditWS.getUIComponent();
      if (uiComponent instanceof UIPortal)
      {
         UIPortal uiPortal = (UIPortal)uiComponent;
View Full Code Here

         }
      }
      else if (model instanceof Container)
      {
         Container container = (Container)model;
         UIContainer uiTempContainer =
            uiContainer.createUIComponent(context, UIContainer.class, container.getFactoryId(), null);
         toUIContainer(uiTempContainer, (Container)model, dashboard);
         uiComponent = uiTempContainer;
      }
      uiContainer.addChild(uiComponent);
View Full Code Here

      {
         return;
      }

      //
      UIContainer uicontainer = addChild(UIContainer.class, null, null);

      //
      Container container = createContainer(COLUMN_CONTAINER, null);

      //
View Full Code Here

      }

      //
      if (dashboard != null)
      {
         UIContainer uiRoot = getChild(UIContainer.class);

         // Clear the children created by default as we get state from the storage
         uiRoot.getChildren().clear();

         // Assemble the dashboard
         PortalDataMapper.toUIContainer(uiRoot, dashboard);
      }
View Full Code Here

    * @return <code>UIGadget</code> object which added in
    * @see UIGadget
    */
   public void addUIGadget(final UIGadget gadget, final int col, final int row)
   {
      UIContainer uiContainer = getColumn(col);
      List<UIComponent> children = uiContainer.getChildren();
      if (uiContainer == null || row < 0 || row > children.size())
      {
         return;
      }
      gadget.setParent(uiContainer);
View Full Code Here

    * @return <code>null</code> if specified position doesn't exist <code>UIGadget</code> otherwise
    * @see UIGadget
    */
   public UIGadget getUIGadget(final int col, final int row)
   {
      UIContainer uiContainer = getColumn(col);
      if (uiContainer == null || row < 0 || row >= uiContainer.getChildren().size())
      {
         return null;
      }
      return uiContainer.getChild(row);
   }
View Full Code Here

   public UIGadget removeUIGadget(final String gadgetId)
   {
      UIGadget gadget = getUIGadget(gadgetId);
      if (gadget != null)
      {
         UIContainer uiContainer = gadget.getParent();
         gadget.setParent(null);
         uiContainer.getChildren().remove(gadget);
      }
      return gadget;
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.webui.container.UIContainer

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.