public ReservationAllocation() throws RaplaException {
   appointmentSelection = new AppointmentSelection(getContext());
   allocatableSelection = new AllocatableSelection(getContext());
   content.setLayout(new BorderLayout());
   content.add(appointmentSelection.getComponent(), BorderLayout.NORTH);
   content.add(allocatableSelection.getComponent(), BorderLayout.CENTER);
   Border emptyBorder = new EmptyLineBorder();
   appointmentSelection
       .getComponent()
       .setBorder(
           BorderFactory.createTitledBorder(emptyBorder, getString("enter_appointments")));
   allocatableSelection
       .getComponent()
       .setBorder(
           BorderFactory.createTitledBorder(
               emptyBorder, getString("select_persons_and_resources")));
 }
 public Collection<Allocatable> getAllocatables() {
   return allocatableSelection.getMarkedAllocatables();
 }
 public void refresh(ModificationEvent evt) throws RaplaException {
   allocatableSelection.dataChanged(evt);
 }
 public void setReservation(Reservation reservation) throws RaplaException {
   allocatableSelection.setReservation(reservation, null);
   appointmentSelection.setReservation(reservation);
   appointmentSelection.addAppointmentListener(allocatableSelection);
 }