Package com.smartgwt.client.data

Examples of com.smartgwt.client.data.DataSource


        }
    }

    public Canvas getViewPanel() {

        DataSource ds = EmployeeXmlDS.getInstance();

        final DynamicForm form = new DynamicForm();
        form.setWidth(300);
       
        SelectItem item = new SelectItem();
View Full Code Here


        return true;
    }

    public Canvas getViewPanel() {

        DataSource dataSource = new DataSource();

        DataSourceField zipCodeField = new DataSourceField();
        zipCodeField.setName("zipCode");
        zipCodeField.setTitle("Zip Code");
        zipCodeField.setType(new ZipCodeUSType());

        dataSource.setFields(zipCodeField);
       
        final DynamicForm boundForm = new DynamicForm();
        boundForm.setWidth(300);
        boundForm.setDataSource(dataSource);
View Full Code Here

            return DESCRIPTION;
        }
    }

    public Canvas getViewPanel() {
        DataSource dataSource = OrderItemLocalDS.getInstance();

        ListGridField orderIdField = new ListGridField("orderID");
        orderIdField.setIncludeInRecordSummary(false);
        orderIdField.setSummaryFunction(SummaryFunctionType.COUNT);
View Full Code Here

        }
    }

    public Canvas getViewPanel() {

        DataSource supplyItemDS = ItemSupplyXmlDS.getInstance();

        final DynamicForm form = new DynamicForm();
        form.setWidth(300);

        ListGridField itemField = new ListGridField("itemName");
View Full Code Here

            return DESCRIPTION;
        }
    }

    public Canvas getViewPanel() {
        DataSource dataSource = new DataSource();
        dataSource.setDataFormat(DSDataFormat.JSON);
        dataSource.setDataURL("data/dataIntegration/json/countries_small.js");

        DataSourceTextField nameField = new DataSourceTextField("name", "Name");
        DataSourceTextField populationfield = new DataSourceTextField("population", "Population");
        DataSourceTextField areaField = new DataSourceTextField("total_area", "Total Area");
        DataSourceTextField governmentField = new DataSourceTextField("government", "Government");

        dataSource.setFields(nameField, populationfield, areaField, governmentField);

        ListGrid grid = new ListGrid();
        grid.setDataSource(dataSource);
        grid.setWidth100();
        grid.setHeight(150);
View Full Code Here

        String[] projects = new String[] {
                "New Costing System", "Warehousing Improvements", "Evaluate AJAX Frameworks", "Upgrade Postgres", "Online Billing"
        };

        DataSource employeesDS = EmployeeXmlDS.getInstance();

        final ListGrid employeesGrid = new ListGrid();
        employeesGrid.setWidth(300);
        employeesGrid.setHeight(224);
        employeesGrid.setDataSource(employeesDS);
        employeesGrid.setCanDragRecordsOut(true);
        employeesGrid.setDragDataAction(DragDataAction.COPY);
        employeesGrid.setAutoFetchData(false);

        ListGridField employeeIdField = new ListGridField("EmployeeId");
        employeeIdField.setWidth("25%");

        ListGridField nameField = new ListGridField("Name");

        employeesGrid.setFields(employeeIdField, nameField);


        DataSource teamMembersDS = TeamMembersXmlDS.getInstance();

        final ListGrid projectGrid = new ListGrid();
        projectGrid.setWidth(300);
        projectGrid.setHeight(264);
        projectGrid.setDataSource(teamMembersDS);
View Full Code Here

            return DESCRIPTION;
        }
    }

    public Canvas getViewPanel() {
        final DataSource countryDS = CountryXmlDS.getInstance();
        final DataSource supplyItemDS = SupplyCategoryXmlDS.getInstance();
       
        final CompoundEditor cEditor = new CompoundEditor(countryDS);
       

        SelectItem dsSelect = new SelectItem();
View Full Code Here

            return DESCRIPTION;
        }
    }

    public Canvas getViewPanel() {
        DataSource dataSource = OrderItemLocalDS.getInstance();

        ListGridField orderIdField = new ListGridField("orderID");
        orderIdField.setIncludeInRecordSummary(false);
        orderIdField.setSummaryFunction(SummaryFunctionType.COUNT);
View Full Code Here

        quantityField.setType(ListGridFieldType.INTEGER);
        quantityField.setWidth(30);

        ListGridField categoryField = new ListGridField("categoryName", "Category");

        DataSource supplyCategoryDS = SupplyCategoryXmlDS.getInstance();
        DataSource supplyItemDS = ItemSupplyXmlDS.getInstance();

        SelectItem categorySelectItem = new SelectItem();
        categorySelectItem.setOptionDataSource(supplyCategoryDS);

        categoryField.setEditorType(categorySelectItem);
View Full Code Here

        }
    }

    public Canvas getViewPanel() {

        DataSource dataSource = SupplyCategoryXmlDS.getInstance();

        ListGrid listGrid = new ListGrid() {
            public DataSource getRelatedDataSource(ListGridRecord record) {
                return ItemSupplyXmlDS.getInstance();
            }
View Full Code Here

TOP

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

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.