Package org.exoplatform.webui.form

Examples of org.exoplatform.webui.form.UIFormTextAreaInput


   {
      addUIFormInput(new UIFormStringInput(MEMBERSHIP_TYPE_NAME, MEMBERSHIP_TYPE_NAME, null).setEditable(
         UIFormStringInput.ENABLE).addValidator(MandatoryValidator.class).addValidator(StringLengthValidator.class, 3,
         30).addValidator(NameValidator.class).addValidator(SpecialCharacterValidator.class));

      addUIFormInput(new UIFormTextAreaInput(DESCRIPTION, DESCRIPTION, null));
   }
View Full Code Here


   {
      addUIFormInput(new UIFormStringInput(GROUP_NAME, GROUP_NAME, null).addValidator(MandatoryValidator.class)
         .addValidator(StringLengthValidator.class, 3, 30).addValidator(IdentifierValidator.class));
      addUIFormInput(new UIFormStringInput(GROUP_LABEL, GROUP_LABEL, null).addValidator(StringLengthValidator.class, 3,
         30));
      addUIFormInput(new UIFormTextAreaInput(GROUP_DESCRIPSION, GROUP_DESCRIPSION, null).addValidator(
         StringLengthValidator.class, 0, 255));
   }
View Full Code Here

                                "(^([1-9]\\d*)(?:px)?$)?", "UIPortletForm.msg.InvalidWidthHeight"))
                .addUIFormInput(new UICheckBoxInput("showInfoBar", "showInfoBar", false))
                .addUIFormInput(new UICheckBoxInput("showPortletMode", "showPortletMode", false))
                .addUIFormInput(new UICheckBoxInput("showWindowState", "showWindowState", false))
                .addUIFormInput(
                        new UIFormTextAreaInput("description", "description", null).addValidator(NotHTMLTagValidator.class,
                                "UIPortletForm.msg.InvalidPortletDescription"));
        addUIFormInput(uiSettingSet);
        UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
        addUIFormInput(uiIconSelector);

View Full Code Here

    public UIMembershipTypeForm() throws Exception {
        addUIFormInput(new UIFormStringInput(MEMBERSHIP_TYPE_NAME, MEMBERSHIP_TYPE_NAME, null).setReadOnly(false)
                .addValidator(MandatoryValidator.class).addValidator(StringLengthValidator.class, 3, 30)
                .addValidator(NameValidator.class).addValidator(SpecialCharacterValidator.class));

        addUIFormInput(new UIFormTextAreaInput(DESCRIPTION, DESCRIPTION, null));
    }
View Full Code Here

        addUIFormInput(new UIFormStringInput(GROUP_NAME, GROUP_NAME, null).addValidator(MandatoryValidator.class)
                .addValidator(StringLengthValidator.class, 3, 30).addValidator(IdentifierValidator.class));
        addUIFormInput(new UIFormStringInput(GROUP_LABEL, GROUP_LABEL, null).addValidator(StringLengthValidator.class, 3, 50)
                .addValidator(UserConfigurableValidator.class, "grouplabel",
                        UserConfigurableValidator.KEY_PREFIX + "grouplabel", false));
        addUIFormInput(new UIFormTextAreaInput(GROUP_DESCRIPSION, GROUP_DESCRIPSION, null).addValidator(
                StringLengthValidator.class, 0, 255));
    }
View Full Code Here

        uiCategorySetting.addUIFormInput(new UIFormStringInput(FIELD_NAME, FIELD_NAME, null)
                .addValidator(MandatoryValidator.class).addValidator(StringLengthValidator.class, 3, 30)
                .addValidator(IdentifierValidator.class));
        uiCategorySetting.addUIFormInput(new UIFormStringInput(FIELD_DISPLAY_NAME, FIELD_DISPLAY_NAME, null).addValidator(
                StringLengthValidator.class, 3, 30).addValidator(NotHTMLTagValidator.class));
        uiCategorySetting.addUIFormInput(new UIFormTextAreaInput(FIELD_DESCRIPTION, FIELD_DESCRIPTION, null).addValidator(
                StringLengthValidator.class, 0, 255));
        addChild(uiCategorySetting);
        setSelectedTab(uiCategorySetting.getId());

        UIFormInputSet uiPermissionSetting = new UIFormInputSet(FIELD_PERMISSION);
View Full Code Here

        WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
        String sample = (String) param.getMapGroovyObject(context);
        addUIFormInput(new UIFormStringInput(FIELD_NAME, FIELD_NAME, null).addValidator(MandatoryValidator.class)
                .addValidator(StringLengthValidator.class, 2, 50).addValidator(ResourceValidator.class)
                .addValidator(ExpressionValidator.class, "^[\\p{L}][\\p{L}._\\-\\d]+$", "UIGadgetEditor.msg.Invalid"));
        addUIFormInput(new UIFormTextAreaInput(FIELD_SOURCE, FIELD_SOURCE, sample).addValidator(MandatoryValidator.class)
                .addValidator(GadgetSpecValidator.class));
    }
View Full Code Here

    }

    public void setSource(Source source) throws Exception {
        source_ = source;
        fullName_ = source_.getName();
        UIFormTextAreaInput uiInputSource = getUIFormTextAreaInput(FIELD_SOURCE);
        uiInputSource.setValue(source_.getTextContent());
    }
View Full Code Here

    public String getSourceName() {
        return (fullName_ != null) ? extractName(fullName_) : null;
    }

    public void processRender(WebuiRequestContext context) throws Exception {
        UIFormTextAreaInput uiInputSource = getUIFormTextAreaInput(FIELD_SOURCE);
        UIFormStringInput uiInputName = getUIStringInput(FIELD_NAME);
        uiInputSource.setValue(uiInputSource.getValue());
        if (this.isEdit()) {
            uiInputName.setReadOnly(true);
        }

        super.processRender(context);
View Full Code Here

    public UIApplicationForm() throws Exception {
        addUIFormInput(new UIFormStringInput("applicationName", "applicationName", null).addValidator(MandatoryValidator.class)
                .addValidator(StringLengthValidator.class, 3, 30).addValidator(NameValidator.class));
        addUIFormInput(new UIFormStringInput("displayName", "displayName", null).addValidator(StringLengthValidator.class, 3,
                30).addValidator(NotHTMLTagValidator.class));
        addUIFormInput(new UIFormTextAreaInput("description", "description", null).addValidator(NullFieldValidator.class)
                .addValidator(NotHTMLTagValidator.class));
    }
View Full Code Here

TOP

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

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.