Package org.exoplatform.webui.form

Examples of org.exoplatform.webui.form.UIFormGrid


    private boolean publicMode_ = false;

    public UIListPermissionSelector() throws Exception {
        UICheckBoxInput uiPublicMode = new UICheckBoxInput("publicMode", null, false);
        addChild(uiPublicMode);
        UIFormGrid uiGrid = addChild(UIFormGrid.class, null, "PermissionGrid");
        uiGrid.setLabel("UIListPermissionSelector");
        uiGrid.configure("expression", new String[] { "groupId", "membership" }, new String[] { "Delete" });
        UIFormPageIterator uiIterator = (UIFormPageIterator) uiGrid.getUIPageIterator();
        uiIterator
                .setPageList(new SerializablePageList<Permission>(Permission.class, Collections.<Permission> emptyList(), 10));
        addChild(uiIterator);
        uiIterator.setRendered(false);
        UIFormPopupWindow uiPopup = addChild(UIFormPopupWindow.class, null, null);
View Full Code Here


    public UIListPermissionSelector setValue(String[] permissions) throws Exception {
        List<Permission> list = new ArrayList<Permission>();
        setPublicMode(false);
        for (String exp : permissions) {
            if (UserACL.EVERYONE.equals(exp)) {
                UIFormGrid uiGrid = getChild(UIFormGrid.class);
                uiGrid.setRendered(false);
                setPublicMode(true);
                break;
            }
            if (exp.trim().length() < 1) {
                continue;
View Full Code Here

    public void setPublicMode(boolean mode) {
        publicMode_ = mode;
        UICheckBoxInput uiPublicMode = getChildById("publicMode");
        uiPublicMode.setChecked(publicMode_);
        UIFormGrid uiGrid = getChild(UIFormGrid.class);
        uiGrid.setRendered(!publicMode_);
        if (publicMode_) {
            uiGrid.getUIPageIterator().setPageList(
                    new SerializablePageList<Permission>(Permission.class, new ArrayList<Permission>(), 10));
        }
    }
View Full Code Here

   public UIListPermissionSelector() throws Exception
   {
      UIFormCheckBoxInput<Boolean> uiPublicMode = new UIFormCheckBoxInput<Boolean>("publicMode", null, false);
      addChild(uiPublicMode);
      UIFormGrid uiGrid = addChild(UIFormGrid.class, null, "PermissionGrid");
      uiGrid.setLabel("UIListPermissionSelector");
      uiGrid.configure("expression", new String[]{"groupId", "membership"}, new String[]{"Delete"});
      UIFormPageIterator uiIterator = (UIFormPageIterator)uiGrid.getUIPageIterator();
      uiIterator.setPageList(new SerializablePageList<Permission>(Permission.class, Collections.<Permission>emptyList(), 10));
      addChild(uiIterator);
      uiIterator.setRendered(false);
      UIFormPopupWindow uiPopup = addChild(UIFormPopupWindow.class, null, null);
      uiPopup.setWindowSize(540, 0);
View Full Code Here

      setPublicMode(false);
      for (String exp : permissions)
      {
         if (UserACL.EVERYONE.equals(exp))
         {
            UIFormGrid uiGrid = getChild(UIFormGrid.class);
            uiGrid.setRendered(false);
            setPublicMode(true);
            break;
         }
         if (exp.trim().length() < 1)
         {
View Full Code Here

   public void setPublicMode(boolean mode) throws Exception
   {
      publicMode_ = mode;
      UIFormCheckBoxInput<Boolean> uiPublicMode = getChildById("publicMode");
      uiPublicMode.setChecked(publicMode_);
      UIFormGrid uiGrid = getChild(UIFormGrid.class);
      uiGrid.setRendered(!publicMode_);
      if (publicMode_)
      {
         uiGrid.getUIPageIterator().setPageList(new SerializablePageList<Permission>(Permission.class, new ArrayList<Permission>(), 10));
      }
   }
View Full Code Here

    private boolean publicMode_ = false;

    public UIListPermissionSelector() throws Exception {
        UICheckBoxInput uiPublicMode = new UICheckBoxInput("publicMode", null, false);
        addChild(uiPublicMode);
        UIFormGrid uiGrid = addChild(UIFormGrid.class, null, "PermissionGrid");
        uiGrid.setLabel("UIListPermissionSelector");
        uiGrid.configure("expression", new String[] { "groupId", "membership" }, new String[] { "Delete" });
        UIFormPageIterator uiIterator = (UIFormPageIterator) uiGrid.getUIPageIterator();
        uiIterator
                .setPageList(new SerializablePageList<Permission>(Permission.class, Collections.<Permission> emptyList(), 10));
        addChild(uiIterator);
        uiIterator.setRendered(false);
        UIFormPopupWindow uiPopup = addChild(UIFormPopupWindow.class, null, null);
View Full Code Here

    public UIListPermissionSelector setValue(String[] permissions) throws Exception {
        List<Permission> list = new ArrayList<Permission>();
        setPublicMode(false);
        for (String exp : permissions) {
            if (UserACL.EVERYONE.equals(exp)) {
                UIFormGrid uiGrid = getChild(UIFormGrid.class);
                uiGrid.setRendered(false);
                setPublicMode(true);
                break;
            }
            if (exp.trim().length() < 1) {
                continue;
View Full Code Here

    public void setPublicMode(boolean mode) {
        publicMode_ = mode;
        UICheckBoxInput uiPublicMode = getChildById("publicMode");
        uiPublicMode.setChecked(publicMode_);
        UIFormGrid uiGrid = getChild(UIFormGrid.class);
        uiGrid.setRendered(!publicMode_);
        if (publicMode_) {
            uiGrid.getUIPageIterator().setPageList(
                    new SerializablePageList<Permission>(Permission.class, new ArrayList<Permission>(), 10));
        }
    }
View Full Code Here

    private boolean publicMode_ = false;

    public UIListPermissionSelector() throws Exception {
        UICheckBoxInput uiPublicMode = new UICheckBoxInput("publicMode", null, false);
        addChild(uiPublicMode);
        UIFormGrid uiGrid = addChild(UIFormGrid.class, null, "PermissionGrid");
        uiGrid.setLabel("UIListPermissionSelector");
        uiGrid.configure("expression", new String[] { "groupId", "membership" }, new String[] { "Delete" });
        UIFormPageIterator uiIterator = (UIFormPageIterator) uiGrid.getUIPageIterator();
        uiIterator
                .setPageList(new SerializablePageList<Permission>(Permission.class, Collections.<Permission> emptyList(), 10));
        addChild(uiIterator);
        uiIterator.setRendered(false);
        UIFormPopupWindow uiPopup = addChild(UIFormPopupWindow.class, null, null);
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.form.UIFormGrid

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.