Package com.smartgwt.client.data

Examples of com.smartgwt.client.data.Record


        tileGrid.setFields(iconField, nameField);


        tileGrid.addRecordClickHandler(new RecordClickHandler() {
            public void onRecordClick(RecordClickEvent event) {
                Record record = event.getRecord();
                showSample(record);
            }
        });

        filterForm = new DynamicForm();
View Full Code Here


        categoryField.setSummaryFunction(new SummaryFunction() {
            public Object getSummaryValue(Record[] records, ListGridField field) {
                Set<String> uniqueCategories = new HashSet<String>();

                for (int i = 0; i < records.length; i++) {
                    Record record = records[i];
                    uniqueCategories.add(((OrderItem) record).getCategory());
                }
                return uniqueCategories.size() + " Categories";
            }
        });
View Full Code Here

        categoryField.setSummaryFunction(new SummaryFunction() {
            public Object getSummaryValue(Record[] records, ListGridField field) {
                Set<String> uniqueCategories = new HashSet<String>();

                for (int i = 0; i < records.length; i++) {
                    Record record = records[i];
                    uniqueCategories.add(((OrderItem) record).getCategory());
                }
                return uniqueCategories.size() + " Categories";
            }
        });
View Full Code Here

TOP

Related Classes of com.smartgwt.client.data.Record

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.