use of org.eclipse.nebula.widgets.nattable.dataset.EventData in project nebula.widgets.nattable by eclipse.
the class CrossValidationDialogErrorHandling method createEventData.
private List<EventData> createEventData() {
List<EventData> result = new ArrayList<>();
EventData ed = new EventData();
ed.setTitle("My correct event");
ed.setDescription("My event that validates correctly");
ed.setWhere("Somewhere");
ed.setFromDate(new GregorianCalendar(2013, 2, 1).getTime());
ed.setToDate(new GregorianCalendar(2013, 2, 3).getTime());
result.add(ed);
ed = new EventData();
ed.setTitle("My wrong event");
ed.setDescription("My event where validation fails");
ed.setWhere("Somewhere else");
ed.setFromDate(new GregorianCalendar(2013, 2, 3).getTime());
ed.setToDate(new GregorianCalendar(2013, 2, 1).getTime());
result.add(ed);
return result;
}
Aggregations