Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIGrid


   private static String[] USER_ACTION = {"Edit", "DeleteUser"};

   public UIUserInGroup() throws Exception
   {
      UIGrid uiGrid = addChild(UIGridUser.class, "UIGridUser", null);
      uiGrid.configure("id", USER_BEAN_FIELD, USER_ACTION);
      uiGrid.getUIPageIterator().setId("UIUserInGroupIterator");
      addChild(UIGroupMembershipForm.class, null, null);
      UIPopupWindow editMemberPopup = addChild(UIPopupWindow.class, null, "EditMembership");
      editMemberPopup.setWindowSize(400, 0);
   }
View Full Code Here


   private static String[] USER_ACTION = {"EditMembership", "DeleteMembership"};

   public UIListMembershipType() throws Exception
   {
      UIGrid uiGrid = addChild(UIGrid.class, null, "UIGrid");
      uiGrid.configure("name", USER_BEAN_FIELD, USER_ACTION);
      uiGrid.getUIPageIterator().setId("UIListMembershipTypeIterator");
      loadData();
   }
View Full Code Here

    public static final String[] ACTIONS = { "DeleteMembership" };

    public UIUserMembershipSelector() throws Exception {
        super("UIUserMembershipSelector", null);
        setComponentConfig(UIUserMembershipSelector.class, null);
        UIGrid uiGrid = addChild(UIGrid.class, null, "MembershipGrid");
        uiGrid.configure("id", BEAN_FIELD, ACTIONS);

        UIFormPopupWindow uiPopup = addChild(UIFormPopupWindow.class, null, "UserPermissionSelector");
        uiPopup.setWindowSize(540, 0);
        UIGroupMembershipSelector uiMembershipSelector = createUIComponent(UIGroupMembershipSelector.class, null, null);
        uiPopup.setUIComponent(uiMembershipSelector);
View Full Code Here

        for (org.exoplatform.services.organization.Membership membership : collection) {
            addMembership(new Membership(membership.getUserName(), membership.getId(), membership.getGroupId(),
                    membership.getMembershipType()));
        }

        UIGrid uiGrid = getChild(UIGrid.class);

        SerializablePageList pageList = new SerializablePageList(new MembershipListAccess(getMembership()), 10);

        uiGrid.getUIPageIterator().setPageList(pageList);
    }
View Full Code Here

    private static String[] USER_BEAN_FIELD = { "userName", "firstName", "lastName", "membershipType", "email" };

    private static String[] USER_ACTION = { "Edit", "DeleteUser" };

    public UIUserInGroup() throws Exception {
        UIGrid uiGrid = addChild(UIGridUser.class, "UIGridUser", null);
        uiGrid.configure("id", USER_BEAN_FIELD, USER_ACTION);
        uiGrid.getUIPageIterator().setId("UIUserInGroupIterator");
        addChild(UIGroupMembershipForm.class, null, null);
        UIPopupWindow editMemberPopup = addChild(UIPopupWindow.class, null, "EditMembership");
        editMemberPopup.setWindowSize(400, 0);
    }
View Full Code Here

    private static String[] USER_BEAN_FIELD = { "name", "createdDate", "modifiedDate", "description" };

    private static String[] USER_ACTION = { "EditMembership", "DeleteMembership" };

    public UIListMembershipType() throws Exception {
        UIGrid uiGrid = addChild(UIGrid.class, null, "UIGrid");
        uiGrid.configure("name", USER_BEAN_FIELD, USER_ACTION);
        uiGrid.getUIPageIterator().setId("UIListMembershipTypeIterator");
        loadData();
    }
View Full Code Here

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

   public UISampleRepeater() throws Exception
   {
      UIGrid uiRepeater = addChild(UIGrid.class, null, null);
      uiRepeater.configure(BEAN_ID, BEAN_NAMES, ACTIONS);
     
      UIPageIterator pageIterator = uiRepeater.getUIPageIterator();
      pageIterator.setPageList(makeDataSource());     
      pageIterator.setParent(this);
   }
View Full Code Here

    public static final String[] ACTIONS = { "DeleteMembership" };

    public UIUserMembershipSelector() throws Exception {
        super("UIUserMembershipSelector", null);
        setComponentConfig(UIUserMembershipSelector.class, null);
        UIGrid uiGrid = addChild(UIGrid.class, null, "MembershipGrid");
        uiGrid.configure("id", BEAN_FIELD, ACTIONS);

        UIFormPopupWindow uiPopup = addChild(UIFormPopupWindow.class, null, "UserPermissionSelector");
        uiPopup.setWindowSize(540, 0);
        UIGroupMembershipSelector uiMembershipSelector = createUIComponent(UIGroupMembershipSelector.class, null, null);
        uiPopup.setUIComponent(uiMembershipSelector);
View Full Code Here

        for (org.exoplatform.services.organization.Membership membership : collection) {
            addMembership(new Membership(membership.getUserName(), membership.getId(), membership.getGroupId(),
                    membership.getMembershipType()));
        }

        UIGrid uiGrid = getChild(UIGrid.class);

        SerializablePageList pageList = new SerializablePageList(new MembershipListAccess(getMembership()), 10);

        uiGrid.getUIPageIterator().setPageList(pageList);
    }
View Full Code Here

   public static String[] SELECT_ACTIONS = {"SelectPortal"};

   public UIPortalSelector() throws Exception
   {
      setName("UIChangePortal");
      UIGrid uiGrid = addChild(UIGrid.class, "PortalSelector", null);
      uiGrid.configure("name", BEAN_FEILD, SELECT_ACTIONS);
      uiGrid.getUIPageIterator().setId("ChangePortalPageInterator");
      addChild(uiGrid.getUIPageIterator());
      uiGrid.getUIPageIterator().setRendered(false);
      DataStorage dataService = getApplicationComponent(DataStorage.class);
      Query<PortalData> query = new Query<PortalData>(null, null, null, null, PortalData.class);
      LazyPageList<PortalData> pageList = dataService.find(query);
      pageList.setPageSize(10);
      pageList = extractPermissedPortal(pageList);
      uiGrid.getUIPageIterator().setPageList(pageList);
   }
View Full Code Here

TOP

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

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.