Package org.eclipse.nebula.widgets.nattable.examples.fixtures

Examples of org.eclipse.nebula.widgets.nattable.examples.fixtures.Person


    private static final String BAR_LABEL = "BAR";

    public Control createExampleControl(Composite parent) {
        List<Person> myList = new ArrayList<Person>();
        for (int i = 1; i <= 100; i++) {
            myList.add(new Person(i, "Joe" + i, new Date()));
        }

        String[] propertyNames = { "id", "name", "birthDate" };

        IColumnPropertyAccessor<Person> columnPropertyAccessor = new ReflectiveColumnPropertyAccessor<Person>(
View Full Code Here


        return natTable;
    }

    private IDataProvider setupBodyDataProvider() {
        final List<Person> people = Arrays.asList(new Person(100,
                "Mickey Mouse", new Date(1000000)), new Person(110, "Batman",
                new Date(2000000)),
                new Person(120, "Bender", new Date(3000000)), new Person(130,
                        "Cartman", new Date(4000000)), new Person(140,
                        "Dogbert", new Date(5000000)));

        propertyToLabels = new HashMap<String, String>();
        propertyToLabels.put("id", "ID");
        propertyToLabels.put("name", "First Name");
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.examples.fixtures.Person

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.