hunthu2000 / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

allow the adding of a user object to the Appointment #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Description of the new feature:
The product would benefit from the ability to associate a user object with an 
appointment. Similar to the feature provided by GWT and Swing trees, the user 
would be able to add their own user object to the gwt-cal Appointment object.

Assumptions:
1. The user has an object that is associated with an appointment.

Exceptions:
1.
2.
3.

Code / psuedo-code:
calendar.suspendLayout();
for (DTOProjectTast dtoProjectTask : listOfDTOProjectTask) {
   Appointment appointment = new Appointment();
   appointment.setUserObject(dtoProjectTask);
   ...
}
calendar.resumeLayout();

Original issue reported on code.google.com by roderick...@gmail.com on 29 Jul 2013 at 11:02

GoogleCodeExporter commented 9 years ago
Hi Roderick,

The idea behind GWT-Cal is to provide an UI. Some years ago (ouch, long time) 
we added the Appointment.id field as a workaround.

The idea is that the GWT-Cal shouldn't contain any business logic. To solve 
this kind of issues you can use the ID field to map your appointment with any 
other kind of objects that you need.

Would that be good enough for you?

Regards,

Original comment by ctasada on 9 Oct 2013 at 8:32