Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIGrid.configure()


   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();
   }

   public UIComponent getViewModeUIComponent()
View Full Code Here

    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

    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();
    }

    public UIComponent getViewModeUIComponent() {
View Full Code Here

    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

   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 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

   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);
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 UIAccessGroup() throws Exception
   {
      super(null, null);
      UIGrid uiGrid = addChild(UIGrid.class, null, "TableGroup");
      uiGrid.configure("id", new String[]{"id", "label", "description"}, new String[]{"Delete"});

      uiGrid.getUIPageIterator().setPageList(new LazyPageList(new AccessGroupListAccess(null), 10));

      UIFormPopupWindow uiPopup = addChild(UIFormPopupWindow.class, null, "UIGroupSelector");
      uiPopup.setWindowSize(540, 0);
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.