Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIRepeater


   public UIGroupNavigationManagement() throws Exception
   {
      UIVirtualList virtualList = addChild(UIVirtualList.class, null, "GroupNavigationList");
      virtualList.setPageSize(4);
      UIRepeater repeater = createUIComponent(UIRepeater.class, "UIGroupNavigationGrid", null);
      virtualList.setUIComponent(repeater);
      UIPopupWindow editNavigation = addChild(UIPopupWindow.class, null, null);
      editNavigation.setId(editNavigation.getId() + "-" + UUID.randomUUID().toString().replaceAll("-", ""));
   }
View Full Code Here


   public static final String[] ACTIONS = {"View", "Edit", "Delete"};

   public UISampleVirtualList() throws Exception
   {
      UIRepeater uiRepeater = createUIComponent(UIRepeater.class, null, null);
      uiRepeater.configure(BEAN_ID, BEAN_NAMES, ACTIONS);     
      uiRepeater.setDataSource(makeDataSource());
     
      UIVirtualList uiVirtualList = addChild(UIVirtualList.class, null, null);
      uiVirtualList.setUIComponent(uiRepeater);     
   }
View Full Code Here

        addChild(uiInputSet);
    }

    private static void configureVirtualList(UIVirtualList vList) {
        UIRepeater repeater;
        try {
            repeater = (UIRepeater) vList.getUIComponent();
            repeater.configure("pageId", UIPageBrowser.BEAN_FIELD, new String[] { "SelectPage" });
        } catch (ClassCastException clCastEx) {
            logger.info("Could not upcast to UIRepeater", clCastEx);
        }
    }
View Full Code Here

        addChild(uiInputSet);
    }

    private static void configureVirtualList(UIVirtualList vList) {
        UIRepeater repeater;
        try {
            repeater = (UIRepeater) vList.getUIComponent();
            repeater.configure("pageId", UIPageBrowser.BEAN_FIELD, new String[] { "SelectPage" });
        } catch (ClassCastException clCastEx) {
            logger.info("Could not upcast to UIRepeater", clCastEx);
        }
    }
View Full Code Here

        @ComponentConfig(id = "UIAddGroupNavigationGrid", type = UIRepeater.class, template = "system:/groovy/portal/webui/navigation/UIGroupGrid.gtmpl") })
public class UIAddGroupNavigation extends UIContainer {

    public UIAddGroupNavigation() throws Exception {
        UIVirtualList virtualList = addChild(UIVirtualList.class, null, "AddGroupNavList");
        UIRepeater repeater = createUIComponent(UIRepeater.class, "UIAddGroupNavigationGrid", null);
        virtualList.setUIComponent(repeater);
        addChild(UIPopupWindow.class, null, "EditGroup");
    }
View Full Code Here

        OPTIONS.add(new SelectItemOption<String>(res.getString("UIPageSearchForm.label.option.group"), "group"));

        UIPageSearchForm uiSearchForm = addChild(UIPageSearchForm.class, null, null);
        uiSearchForm.setOptions(OPTIONS);
        uiSearchForm.setId("UIPageSearchForm");
        UIRepeater uiRepeater = createUIComponent(UIRepeater.class, null, null);
        uiRepeater.configure("pageId", BEAN_FIELD, ACTIONS);

        lastQuery_ = new Query<Page>(null, null, null, null, Page.class);
        lastQuery_.setOwnerType(OPTIONS.get(0).getValue());

        UIVirtualList virtualList = addChild(UIVirtualList.class, null, null);
View Full Code Here

        // virtualList.dataBind(new PageQueryAccessList(lastQuery_, 10));
        virtualList.dataBind(new PageIterator(lastQuery_.getOwnerType(), lastQuery_.getOwnerId(), lastQuery_.getName(),
                lastQuery_.getTitle(), 10));

        //
        UIRepeater repeater = (UIRepeater) virtualList.getRepeater();
        if (repeater.hasNext()) {
            return true;
        } else {
            return false;
        }
    }
View Full Code Here

    // set navigationScope to GrandChildren for default value
    private Scope navigationScope = Scope.GRANDCHILDREN;

    public UIGroupNavigationManagement() throws Exception {
        UIVirtualList virtualList = addChild(UIVirtualList.class, null, "GroupNavigationList");
        UIRepeater repeater = createUIComponent(UIRepeater.class, "UIGroupNavigationGrid", null);
        virtualList.setUIComponent(repeater);
        UIPopupWindow editNavigation = addChild(UIPopupWindow.class, null, null);
        editNavigation.setId(editNavigation.getId() + "-" + UUID.randomUUID().toString().replaceAll("-", ""));
    }
View Full Code Here

   public UIAddGroupNavigation() throws Exception
   {
      UIVirtualList virtualList = addChild(UIVirtualList.class, null, "AddGroupNavList");
      virtualList.setPageSize(6);
      UIRepeater repeater = createUIComponent(UIRepeater.class, "UIAddGroupNavigationGrid", null);
      virtualList.setUIComponent(repeater);
      UIPopupWindow editGroup = addChild(UIPopupWindow.class, null, "EditGroup");
   }
View Full Code Here

   public UIPageBrowser() throws Exception
   {
      super(OPTIONS);

      getChild(UISearchForm.class).setId("UIPageSearch");
      UIRepeater uiRepeater = createUIComponent(UIRepeater.class, null, null);
      uiRepeater.configure("pageId", BEAN_FIELD, ACTIONS);

      UIVirtualList virtualList = addChild(UIVirtualList.class, null, null);
      virtualList.setPageSize(10);
      virtualList.setUIComponent(uiRepeater);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.core.UIRepeater

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.