Package at.riemers.zero.widgets.form

Examples of at.riemers.zero.widgets.form.FormWidget.addField()


        FormWidget filter = (FormWidget) getWidgetManager(session).getWidget("USERLIST_FILTER");
        if (filter == null) {
            filter = new FormWidget("USERLIST_FILTER", getLocale(request));
            filter.setColumnCount(3);
            filter.setShowLabelAtTop(true);
            filter.addField(new StringField("username", "base.user.table.username", ""));
            ComboBoxField groupField = new ComboBoxField("userGroup", "base.user.label.usergroupkey", "");

            groupField.addOption("", "*");
            for (UserGroup userGroup : getUserGroups()) {
                groupField.addOption(userGroup.getId(), userGroup.getGroupKey());
View Full Code Here


            groupField.addOption("", "*");
            for (UserGroup userGroup : getUserGroups()) {
                groupField.addOption(userGroup.getId(), userGroup.getGroupKey());
            }

            filter.addField(groupField);

            ComboBoxField deletedField = new ComboBoxField("deleted", "base.user.label.deleted", "");

            deletedField.addOption("", "NOT DELETED");
            deletedField.addOption("D", "DELETED");
View Full Code Here

            deletedField.addOption("", "NOT DELETED");
            deletedField.addOption("D", "DELETED");
            deletedField.addOption("A", "ALL");


            filter.addField(deletedField);

            filter.setForm("UserFilterForm");
            getWidgetManager(session).register(filter);
        }
        view.addWidget(filter);
View Full Code Here

            FormWidget filter = (FormWidget) getWidgetManager(session).getWidget("ROLELIST_FILTER");           
            if (filter == null) {
                filter = new FormWidget("ROLELIST_FILTER", getLocale(request));
                filter.setColumnCount(2);
                filter.setShowLabelAtTop(true);
                filter.addField(new StringField("name", "base.user.table.name", ""));
               
                ComboBoxField groupField = new ComboBoxField("userGroup", "base.user.label.usergroupkey", "");

                groupField.addOption("", "*");
                for (UserGroup userGroup : getUserGroups()) {
View Full Code Here

                groupField.addOption("", "*");
                for (UserGroup userGroup : getUserGroups()) {
                    groupField.addOption(userGroup.getId(), userGroup.getGroupKey());
                }

                filter.addField(groupField);
                filter.setForm("RoleFilterForm");
                getWidgetManager(session).register(filter);
            }
            view.addWidget(filter);

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.