Package org.gwtoolbox.widget.client.grid

Examples of org.gwtoolbox.widget.client.grid.Columns


    private LiveDataGrid grid;

    public LiveDataGridSample() {

        Columns columns = new Columns(
                new Column("firstName", "First Name", DataTypes.TEXT, 100),
                new Column("lastName", "Last Name", DataTypes.TEXT, 100),
                new Column("age", "Age", DataTypes.INT, 100),
                new Column("gender", "Gender", DataTypes.GENDER, 100, SORTABLE, HIDABLE).setAlignment(ALIGN_CENTER),
                new Column("birthTime", "Birth Time", DataTypes.TIME, 100, SORTABLE, HIDABLE),
                new Column("dutch", "Dutch", DataTypes.BOOLEAN, 50, SORTABLE, HIDABLE).setAlignment(ALIGN_CENTER)
        );
        columns.setFeatures("lastName", SORTABLE, HIDABLE);
        columns.setFeatures("age", SORTABLE, HIDABLE);
        columns.setAlignment("age", ALIGN_CENTER);

        grid = new LiveDataGrid(columns);
        grid.setSize("100%", "250px");

        DataSource personDataSource = new PersonDataSource();
View Full Code Here


@TableSample
public class DataTableSample extends Composite implements SamplePanel {

    public DataTableSample() {

        Columns columns = new Columns(
                new Column("firstName", "First Name", DataTypes.TEXT, 100),
                new Column("lastName", "Last Name", DataTypes.TEXT, 100),
                new Column("age", "Age", DataTypes.INT, 100),
                new Column("gender", "Gender", DataTypes.GENDER, 100, SORTABLE, HIDABLE).setAlignment(ALIGN_CENTER),
                new Column("birthTime", "Birth Time", DataTypes.TIME, 100, SORTABLE, HIDABLE),
                new Column("dutch", "Dutch", DataTypes.BOOLEAN, 50, SORTABLE, HIDABLE).setAlignment(ALIGN_CENTER)
        );
        columns.setFeatures("lastName", SORTABLE, HIDABLE);
        columns.setFeatures("age", SORTABLE, HIDABLE);
        columns.setAlignment("age", ALIGN_CENTER);

        final DataGrid grid = new DataGrid(columns);
        grid.setEditInPlace(true);
        grid.setSize("100%", "250px");
        grid.setSelectionModel(new SingleRowSelectionModel());
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.grid.Columns

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.