db.addReservation(resource, 0, (Date) reservedFrom.getValue(),\r
(Date) reservedTo.getValue(), (String) description\r
.getValue());\r
+ statusLabel.setCaption("Success!");\r
+ statusLabel\r
+ .setValue("You have reserved the resource for the selected period.");\r
}\r
} catch (ResourceNotAvailableException e) {\r
statusLabel.setCaption("Reservation failed");\r
SampleDB.Resource.PROPERTY_ID_NAME).getValue());\r
reservationButton.setEnabled(true);\r
}\r
- \r
+\r
}\r
\r
private void initCalendarFieldPropertyIds(CalendarField cal) {\r
cal\r
.setItemTitlePropertyId(SampleDB.Reservation.PROPERTY_ID_DESCRIPTION);\r
}\r
- \r
+\r
private void resetStatus() {\r
statusLabel.setCaption(null);\r
statusLabel.setValue(null);\r
refreshReservations();\r
resetStatus();\r
}\r
- \r
\r
}\r