Package org.gwtoolbox.widget.client.data

Examples of org.gwtoolbox.widget.client.data.MapRecord


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

        Record record = new MapRecord()
                .setValue("firstName", "Uri")
                .setValue("lastName", "Boness")
                .setIntValue("age", 33)
                .setValue("gender", Gender.MALE)
                .setValue("birthTime", new Time(5))
                .setValue("dutch", false);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Daan")
                .setValue("lastName", "Boness")
                .setIntValue("age", 5)
                .setValue("gender", Gender.MALE)
                .setValue("birthTime", new Time(5))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
                .setValue("dutch", true);
        grid.addRecord(record);

        record = new MapRecord()
                .setValue("firstName", "Lian")
                .setValue("lastName", "Boness")
                .setIntValue("age", 2)
                .setValue("gender", Gender.FEMALE)
                .setValue("birthTime", new Time(10))
View Full Code Here


//            }
//        }.schedule(500);
    }

    private Record personToRecord(Person person) {
        MapRecord record = new MapRecord();
        record.setValue("id", person.getId());
        record.setValue("name", person.getName());
        record.setValue("age", person.getAge());
        record.setValue("gender", person.getGender());
        return record;
    }
View Full Code Here

    /**
     * Default constructor of the form.
     */
    public Form() {
        this(new MapRecord());
    }
View Full Code Here

            if (field.isEnabled()) {
                Object value = entry.getValue().getEditor().getValue();
                data.put(entry.getKey(), value);
            }
        }
        return new MapRecord(data);
    }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.data.MapRecord

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.