Examples of FieldColumn


Examples of org.apache.click.extras.control.FieldColumn

        table.setPageSize(5);
        table.setShowBanner(true);

        table.addColumn(new Column("id"));

        FieldColumn column = new FieldColumn("name", new TextField());
        column.getField().setRequired(true);
        column.setVerticalAlign("baseline");
        table.addColumn(column);

        column = new FieldColumn("email", new EmailField());
        column.getField().setRequired(true);
        table.addColumn(column);

        column = new FieldColumn("investments", new InvestmentSelect());
        column.getField().setRequired(true);
        table.addColumn(column);

        NumberField numberField = new NumberField();
        numberField.setSize(5);
        column = new FieldColumn("holdings", numberField);
        column.setTextAlign("right");
        table.addColumn(column);

        column = new FieldColumn("dateJoined", new DateField());
        column.setDataStyle("white-space", "nowrap");
        table.addColumn(column);

        column = new FieldColumn("active", new Checkbox());
        column.setTextAlign("center");
        table.addColumn(column);

        Column actionColumn = new Column("Action");
        actionColumn.setSortable(false);
        ActionLink[] links = new ActionLink[]{deleteCustomer};
View Full Code Here

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

    @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");
        nameColumn.setSortable(true);
        FieldColumn ageColumn = new FieldColumn("Age", "age", DataTypes.INT, null, HasHorizontalAlignment.ALIGN_CENTER);
        ageColumn.setSortable(true);

        ColumnSpec columns = new ColumnSpec()
                .addColumn(indexColumn)
                .addColumn(idColumn)
                .addColumn(genderColumn)
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.