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()); }
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()); }