Package org.exoplatform.webui.form

Examples of org.exoplatform.webui.form.UIFormCheckBoxInput


    }

    private void setSelectedItem() throws Exception {
        for (Object o : this.uiIterator_.getCurrentPageData()) {
            User u = (User) o;
            UIFormCheckBoxInput input = this.getUIFormCheckBoxInput(u.getUserName());
            if (input != null) {
                this.uiIterator_.setSelectedItem(u.getUserName(), input.isChecked());
            }
        }
    }
View Full Code Here


         .addUIFormInput(
            new UIFormStringInput("width", "width", null).addValidator(ExpressionValidator.class, "(^([1-9]\\d*)px$)?",
               "UIPortletForm.msg.InvalidWidthHeight")).addUIFormInput(
         new UIFormStringInput("height", "height", null).addValidator(ExpressionValidator.class,
            "(^([1-9]\\d*)px$)?", "UIPortletForm.msg.InvalidWidthHeight")).addUIFormInput(
         new UIFormCheckBoxInput("showInfoBar", "showInfoBar", false)).addUIFormInput(
         new UIFormCheckBoxInput("showPortletMode", "showPortletMode", false)).addUIFormInput(
         new UIFormCheckBoxInput("showWindowState", "showWindowState", false)).addUIFormInput(
         new UIFormTextAreaInput("description", "description", null).addValidator(StringLengthValidator.class, 0,
            255).addValidator(ExpressionValidator.class, "[^\\<\\>]*", "UIPortletForm.msg.InvalidPortletDescription"));
      addUIFormInput(uiSettingSet);
      UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
      addUIFormInput(uiIconSelector);
View Full Code Here

   public void configure(String iname, String bfield)
   {
      setName(iname);
      setId(iname);
      setBindingField(bfield);
      UIFormCheckBoxInput uiPublicMode = getChild(UIFormCheckBoxInput.class);
      uiPublicMode.setOnChange("ChangePublicMode", iname);
      UIFormPopupWindow uiPopup = getChild(UIFormPopupWindow.class);
      uiPopup.setId(iname + "Popup");
   }
View Full Code Here

      uiSettingSet.addUIFormInput(new UIFormStringInput("pageId", "pageId", null).setEditable(false)).addUIFormInput(
         uiSelectBoxOwnerType).addUIFormInput(ownerIdInput).addUIFormInput(
         new UIFormStringInput("name", "name", null).addValidator(StringLengthValidator.class, 3, 30).addValidator(
            IdentifierValidator.class).addValidator(MandatoryValidator.class)).addUIFormInput(
         new UIFormStringInput("title", "title", null).addValidator(StringLengthValidator.class, 3, 120))
         .addUIFormInput(new UIFormCheckBoxInput("showMaxWindow", "showMaxWindow", false));
      addUIFormInput(uiSettingSet);
      setSelectedTab(uiSettingSet.getId());

      uiPermissionSetting = createUIComponent(UIFormInputSet.class, "PermissionSetting", null);
      UIListPermissionSelector uiListPermissionSelector = createUIComponent(UIListPermissionSelector.class, null, null);
View Full Code Here

    }

    private void setSelectedItem() throws Exception {
        for (Object o : this.uiIterator_.getCurrentPageData()) {
            User u = (User) o;
            UIFormCheckBoxInput input = this.getUIFormCheckBoxInput(u.getUserName());
            if (input != null) {
                this.uiIterator_.setSelectedItem(u.getUserName(), input.isChecked());
            }
        }
    }
View Full Code Here

      uiSettingSet.addUIFormInput(new UIFormStringInput("pageId", "pageId", null).setEditable(false)).addUIFormInput(
         uiSelectBoxOwnerType).addUIFormInput(ownerIdInput).addUIFormInput(
         new UIFormStringInput("name", "name", null).addValidator(StringLengthValidator.class, 3, 30).addValidator(
            IdentifierValidator.class).addValidator(MandatoryValidator.class)).addUIFormInput(
         new UIFormStringInput("title", "title", null).addValidator(StringLengthValidator.class, 3, 120))
         .addUIFormInput(new UIFormCheckBoxInput("showMaxWindow", "showMaxWindow", false));
      addUIFormInput(uiSettingSet);
      setSelectedTab(uiSettingSet.getId());

      WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
      Param param = initParams.getParam("PageTemplate");
View Full Code Here

         .addUIFormInput(
            new UIFormStringInput("width", "width", null).addValidator(ExpressionValidator.class, "(^([1-9]\\d*)px$)?",
               "UIPortletForm.msg.InvalidWidthHeight")).addUIFormInput(
         new UIFormStringInput("height", "height", null).addValidator(ExpressionValidator.class,
            "(^([1-9]\\d*)px$)?", "UIPortletForm.msg.InvalidWidthHeight")).addUIFormInput(
         new UIFormCheckBoxInput("showInfoBar", "showInfoBar", false)).addUIFormInput(
         new UIFormCheckBoxInput("showPortletMode", "showPortletMode", false)).addUIFormInput(
         new UIFormCheckBoxInput("showWindowState", "showWindowState", false)).addUIFormInput(
         new UIFormTextAreaInput("description", "description", null).addValidator(StringLengthValidator.class, 0,
            255));
      addUIFormInput(uiSettingSet);
      UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
      addUIFormInput(uiIconSelector);
View Full Code Here

   public void configure(String iname, String bfield)
   {
      setName(iname);
      setId(iname);
      setBindingField(bfield);
      UIFormCheckBoxInput uiPublicMode = getChild(UIFormCheckBoxInput.class);
      uiPublicMode.setOnChange("ChangePublicMode", iname);
      UIFormPopupWindow uiPopup = getChild(UIFormPopupWindow.class);
      uiPopup.setId(iname + "Popup");
   }
View Full Code Here

         StringBuilder sb = new StringBuilder();
         int count = 0;
         for (Object o : uiForm.uiIterator_.getCurrentPageData())
         {
            User u = (User)o;
            UIFormCheckBoxInput input = uiForm.getUIFormCheckBoxInput(u.getUserName());
            if (input != null && input.isChecked())
            {
               count++;
               if (sb.toString() != null && sb.toString().trim().length() != 0)
                  sb.append(",");
               sb.append(u.getUserName());
View Full Code Here

TOP

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

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.