Example #1
0
 private void updateViews() {
   for (EventWindow view : eventViews.values()) {
     view.getEventNameField().setText(getTitle());
     view.getEventNameField().setBackground(Singleton.BACKGROUND);
     view.getEventDescriptionArea().setText(getDescription());
     view.getEventDescriptionArea().setBackground(Singleton.BACKGROUND);
     view.setParticipants(getParticipants());
     view.getStartTime().setValue(getStartDate());
     view.getStartDate().setValue(DateManagement.stripClock(getStartDate()));
     view.getDuration().setSelectedItem(getDuration());
     view.getRoomNumberField().setText(getRoom() == null ? "" : getRoom().getName());
     view.getAlert().setSelected(getAlert());
     if (getCreator() != null) view.getCreatorField().setText(getCreator().toString());
   }
 }
Example #2
0
 public void updateRoom() {
   for (EventWindow view : eventViews.values())
     view.getRoomNumberField().setText(getRoom() == null ? "" : getRoom().getName());
 }