Package org.exoplatform.portal.webui.container

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


      if (num < 1 || num > MAX_COLUMN)
      {
         return null;
      }

      UIContainer uiRoot = findFirstComponentOfType(UIContainer.class);
      List<UIContainer> columns = getColumns();
      int colSize = columns.size();

      if (num < colSize)
      {
         for (int i = num; i < colSize; i++)
         {
            UIContainer tempCol = columns.get(i);
            List<UIComponent> components = new ArrayList<UIComponent>();
            for (UIComponent component : tempCol.getChildren())
            {
               columns.get(num - 1).addChild(component);
               components.add(component);
            }
            uiRoot.removeChildById(tempCol.getId());
            for (UIComponent component : components)
            {
               component.setParent(columns.get(num - 1));
            }
         }
      }
      else
      {
         if (num > colSize)
         {
            do
            {
               UIContainer uiContainer = createUIComponent(UIContainer.class, null, null);
               PortalDataMapper.toUIContainer(uiContainer, createContainer(ROW_CONTAINER, "UIColumn-" + colSize));
               uiRoot.addChild(uiContainer);
               colSize++;
            }
            while (num > colSize);
View Full Code Here


    * @see UIContainer
    */
   public List<UIContainer> getColumns()
   {
      List<UIContainer> list = new ArrayList<UIContainer>();
      UIContainer uiRoot = findFirstComponentOfType(UIContainer.class);
      uiRoot.findComponentOfType(list, UIContainer.class);
      if (list.size() > 0 && list.contains(uiRoot))
      {
         list.remove(uiRoot);
      }
      return list;
View Full Code Here

    *
    * @throws Exception
    */
   public void save() throws Exception
   {
      UIContainer uiRoot = findFirstComponentOfType(UIContainer.class);

      if (!((UIDashboard)getParent()).canEdit())
      {
         return;
      }
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.