Package org.gwtoolbox.widget.client.table.datagrid.column

Examples of org.gwtoolbox.widget.client.table.datagrid.column.Column


    private final OldDataGrid grid;

    @SuppressWarnings({"unchecked"})
    public DataGridSamplePane() {

        Column indexColumn = new Column("#", new RowNumberValueExtractor(), DataTypes.INT, "30px", null);
        FieldColumn idColumn = new FieldColumn("ID", "id", DataTypes.INT, "50px", HasHorizontalAlignment.ALIGN_CENTER);
        FieldColumn genderColumn = new FieldColumn("Gender", "gender", DataTypes.GENDER, "100px", HasHorizontalAlignment.ALIGN_CENTER);
        genderColumn.setSortable(true);
        genderColumn.setGroupable(true);
        FieldColumn nameColumn = new FieldColumn("Name", "name", DataTypes.TEXT, "150px");
View Full Code Here


    }

    //============================================== Helper Methods ====================================================

    private CellRenderer getCellRenderer(String fieldName) {
        Column column = columnSpec.getColumn(fieldName);
        return column.getCellRenderer();
    }
View Full Code Here

    }

    private class InternalTableSorter implements TableSorter {

        public void sort(BasicTable table, int column, boolean asc) {
            Column c = columnSpec.getColumn(column);
            if (!(c instanceof FieldColumn)) {
                return;
            }
            FieldSort sort = new FieldSort(((FieldColumn)c).getFieldName(), asc);
            currentSortSpec = new SortSpec().addSort(sort);
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.table.datagrid.column.Column

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.