Examples of TreeGridField


Examples of com.smartgwt.client.widgets.tree.TreeGridField

        treeGridAux.setWidth("100%");
        treeGridAux.setHeight("100%");

        //create the fields of the TreeGrid.
        final int widthField = 300;
        TreeGridField field = new TreeGridField("Name", title, widthField);
        field.setCanSort(false);
        field.setShowAlternateStyle(true);
        treeGridAux.setFields(field);

        //configure the handlers of the TreeGrid
        treeGridAux.addDrawHandler(new DrawHandler() {
            @Override
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

        employeeTreeGrid.setNodeIcon("icons/16/person.png");
        employeeTreeGrid.setFolderIcon("icons/16/person.png");
        employeeTreeGrid.setShowOpenIcons(false);
        employeeTreeGrid.setShowDropIcons(false);
        employeeTreeGrid.setClosedIconSuffix("");
        employeeTreeGrid.setFields(new TreeGridField("Name"));
        employeeTreeGrid.setData(employeeTree);
       
        employeeTreeGrid.getData().openAll();
       
        return employeeTreeGrid;
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

        employeeTreeGrid.setNodeIcon("icons/16/person.png");
        employeeTreeGrid.setFolderIcon("icons/16/person.png");
        employeeTreeGrid.setShowOpenIcons(false);
        employeeTreeGrid.setShowDropIcons(false);
        employeeTreeGrid.setClosedIconSuffix("");
        employeeTreeGrid.setFields(new TreeGridField("Name"));
        employeeTreeGrid.setData(employeeTree);
       
        employeeTreeGrid.getData().openAll();
       
        return employeeTreeGrid;
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

    public Canvas getViewPanel() {
        TreeGrid treeGrid = new TreeGrid();
        treeGrid.setWidth(300);
        treeGrid.setHeight(400);

        TreeGridField field = new TreeGridField("Name", "Tree from local data");
        field.setCanSort(false);

        treeGrid.setFields(field);

        final Tree tree = new Tree();
        tree.setModelType(TreeModelType.PARENT);
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

        final TreeGrid treeGrid = new TreeGrid();
        treeGrid.setHeight100();
        treeGrid.setWidth100();

        //create the fields of the TreeGrid.
        TreeGridField field = new TreeGridField("Name", constants.name());
        field.setIcon("edit.png");
        field.setCanSort(false);
        field.setShowAlternateStyle(true);

        TreeGridField nameField = new TreeGridField("nodeInfo", constants.description());
        nameField.setIcon("descripcion.jpg");
        nameField.setShowAlternateStyle(true);
/*
        TreeGridField priorityField = new TreeGridField("priority", constants.priority());
        priorityField.setIcon("priority.jpg");
        priorityField.setWidth("12%");
        priorityField.setShowAlternateStyle(true);
*/
        TreeGridField initialEstimationField = new TreeGridField("initialEstimation",constants.initialEstimation());
        initialEstimationField.setWidth("12%");
        initialEstimationField.setIcon("clock.jpg");
        initialEstimationField.setShowAlternateStyle(true);

        TreeGridField currentEstimationField = new TreeGridField("currentEstimation",constants.currentEstimation());
        currentEstimationField.setWidth("12%");
        currentEstimationField.setIcon("clock.jpg");
        currentEstimationField.setShowAlternateStyle(true);
/*
        TreeGridField stateField = new TreeGridField("state",constants.state());
        stateField.setWidth("12%");
        stateField.setIcon("state.jpg");
        stateField.setShowAlternateStyle(true);
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

        employeeTree.setIdField("EmployeeId");
        employeeTree.setParentIdField("ReportsTo");
        employeeTree.setOpenProperty("isOpen");
        employeeTree.setData(employeeData);
       
        TreeGridField formattedField = new TreeGridField("Name");
        formattedField.setCellFormatter(new CellFormatter() {
            public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                return record.getAttributeAsString("Job") + ": " + value;
            }
        });
       
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

                new TreeNode("Window"),
                new TreeNode("Favourites")));

        treeGrid.setData(data);
       
        TreeGridField field = new TreeGridField("Navigation");
        field.setCellFormatter(new CellFormatter() {
            public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                return record.getAttribute("name");
            }
        });
        treeGrid.setFields(field);
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

        employeeTree.setFolderIcon("icons/16/person.png");
        employeeTree.setShowOpenIcons(false);
        employeeTree.setShowDropIcons(false);
        employeeTree.setClosedIconSuffix("");    
        employeeTree.setBaseStyle("noBorderCell");
        employeeTree.setFields(new TreeGridField("Name"));

        employeeTree.addDataArrivedHandler(new DataArrivedHandler() {
            public void onDataArrived(DataArrivedEvent event) {
                employeeTree.getData().openAll();
            }
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

        treeGrid.setShowDropIcons(false);
        treeGrid.setClosedIconSuffix("");
        treeGrid.setAutoFetchData(true);


        TreeGridField field = new TreeGridField();
        field.setName("Name");
        field.setCellFormatter(new CellFormatter() {
            public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                return record.getAttribute("Job") + ": " + value;
            }
        });
View Full Code Here

Examples of com.smartgwt.client.widgets.tree.TreeGridField

        treeGrid.setShowOpenIcons(false);
        treeGrid.setShowDropIcons(false);
        treeGrid.setClosedIconSuffix("");
        treeGrid.setAutoFetchData(true);

        TreeGridField nameField = new TreeGridField("Name");
        TreeGridField jobField = new TreeGridField("Job");
        TreeGridField salaryField = new TreeGridField("Salary");
        salaryField.setCellFormatter(new CellFormatter() {
            public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                if(value != null) {
                    NumberFormat nf = NumberFormat.getFormat("#,##0");
                    try {
                        return "$" + nf.format(((Number)value).longValue());
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.