Package org.gwtoolbox.widget.client.grid

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


    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);
View Full Code Here


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);
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.grid.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.