Package com.smartgwt.client.widgets.form

Examples of com.smartgwt.client.widgets.form.FormItemValueFormatter


        item.setValueField("EmployeeId");
        item.setDisplayField("Name");
        item.setPickListFields(new ListGridField("Name"), new ListGridField("Email"));
        item.setWidth(250);
        item.setPickListWidth(250);
        item.setValueFormatter(new FormItemValueFormatter() {
          public String formatValue(Object value, Record record, DynamicForm form, FormItem item) {
            ListGridRecord r = item.getSelectedRecord();
            if (r == null) return "";
            return r.getAttribute("Name") + " (" + r.getAttribute("Email") + ")";
          }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.form.FormItemValueFormatter

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.