Search in sources :

Example 1 with Department

use of com.vaadin.flow.component.combobox.test.entity.Department in project flow-components by vaadin.

the class DepartmentData method createDepartmentList.

private static List<Department> createDepartmentList() {
    List<Department> departmentList = new ArrayList<>();
    departmentList = new ArrayList<>();
    departmentList.add(new Department(1, "Product"));
    departmentList.add(new Department(2, "Service"));
    departmentList.add(new Department(3, "HR"));
    departmentList.add(new Department(4, "Accounting"));
    return departmentList;
}
Also used : Department(com.vaadin.flow.component.combobox.test.entity.Department) ArrayList(java.util.ArrayList)

Aggregations

Department (com.vaadin.flow.component.combobox.test.entity.Department)1 ArrayList (java.util.ArrayList)1