我将 JavaFx 与 jfxtras 库一起使用。我将“议程”控件包含在我的 fxml 中,并且它在页面上正确呈现。不幸的是,相关的约会没有显示在表格上,也没有相关的事件。如何实现样本的相同行为?我在哪里可以找到有关此控件的教程?这里的java代码:
LocalDate lTodayLocalDate = LocalDate.now();
Agenda.Appointment[] lTestAppointments = new Agenda.Appointment[]{
new Agenda.AppointmentImpl()
.withStartTime(new GregorianCalendar(lTodayLocalDate.getYear(), lTodayLocalDate.getMonthValue(), lTodayLocalDate.getDayOfMonth(), 4, 00))
.withEndTime(new GregorianCalendar(lTodayLocalDate.getYear(), lTodayLocalDate.getMonthValue(), lTodayLocalDate.getDayOfMonth(), 5, 30))
.withSummary("A")
.withDescription("A much longer test description")
.withAppointmentGroup(lAppointmentGroupMap.get("group07"))
};
agenda.appointments().addAll(lTestAppointments);