コード例 #1
0
 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")));
 }
コード例 #2
0
 public Collection<Allocatable> getAllocatables() {
   return allocatableSelection.getMarkedAllocatables();
 }
コード例 #3
0
 public void refresh(ModificationEvent evt) throws RaplaException {
   allocatableSelection.dataChanged(evt);
 }
コード例 #4
0
 public void setReservation(Reservation reservation) throws RaplaException {
   allocatableSelection.setReservation(reservation, null);
   appointmentSelection.setReservation(reservation);
   appointmentSelection.addAppointmentListener(allocatableSelection);
 }