blob: b59d88e464019f701924800765dfecb8d78f244b [file] [log] [blame]
/*
* Copyright (C) 2005, 2015 David Orme <djo@coconut-palm-software.com>
*
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* David Orme - Initial API and implementation
*/
package org.eclipse.jface.examples.databinding.model;
import java.util.LinkedList;
import java.util.List;
public class SimpleModel {
public SimpleModel() {
// Add some sample data to our personList...
personList.add(new SimplePerson("John", "1234", "Wheaton", "IL"));
personList.add(new SimplePerson("Jane", "1234", "Glen Ellyn", "IL"));
personList.add(new SimplePerson("Frank", "1234", "Lombard", "IL"));
personList.add(new SimplePerson("Joe", "1234", "Elmhurst", "IL"));
personList.add(new SimplePerson("Chet", "1234", "Oak Lawn", "IL"));
personList.add(new SimplePerson("Wilbur", "1234", "Austin", "IL"));
personList.add(new SimplePerson("Elmo", "1234", "Chicago", "IL"));
}
// Now a PersonList property...
List<SimplePerson> personList = new LinkedList<>();
public List<SimplePerson> getPersonList() {
return personList;
}
}