Exemplo n.º 1
0
 public void updateModel(EventWindow view) {
   setTitle(event.getTitle());
   setDescription(event.getDescription());
   setAlert(
       event.getParticipants().get(Singleton.getInstance().getSelf().getUsername()).getAlert());
   setDuration(event.getDuration());
   setStartDate(event.getStart());
   setParticipants(event.getParticipants());
 }
Exemplo n.º 2
0
 public void setCalEvent(CalEvent event) {
   this.event = event;
   setTitle(event.getTitle());
   setDescription(event.getDescription());
   try {
     setAlert(
         event.getParticipants().get(Singleton.getInstance().getSelf().getUsername()).getAlert());
   } catch (Exception e) {
   }
   setDuration(event.getDuration());
   setStartDate(event.getStart());
   setParticipants(event.getParticipants());
   setCreator(event.getCreator());
   setRoom(event.getRoom());
 }