org.rapla.gui
Interface ReservationController


public interface ReservationController

Use the ReservationController to modify or create a Reservation. This class handles all interactions with the user. Examples:

  • If you edit a reservation it will first check, if there is already is an open edit-window for the reservation and will give focus to that window instead of creating a new one.
  • If you move or delete an repeating appointment it will display dialogs where the user will be asked if he wants to delete/move the complete appointment or just the occurance on the selected date.
  • If conflicts are found, a conflict panel will be displayed on saving.

  • Field Summary
    static String ROLE
               
     
    Method Summary
     Appointment copyAppointment(Appointment appointment)
              copys an appointment without interaction
     Appointment copyAppointment(Appointment appointment, Date from, Component sourceComponent, Point point)
               
     void deleteAppointment(Appointment appointment, Date from, Component sourceComponent, Point point)
               
     void edit(Appointment appointment)
               
     void edit(Reservation reservation)
               
     ReservationEdit[] getEditWindows()
               
     void moveAppointment(Appointment appointment, Date from, Date newStart, Component sourceComponent, Point p)
               
     void pasteAppointment(Appointment appointment, Date start, Component sourceComponent, Allocatable[] restrictedAllocatables)
               
     void resizeAppointment(Appointment appointment, Date from, Date newStart, Date newEnd, Component sourceComponent, Point p)
               
     boolean save(Reservation reservation, Component sourceComponent, boolean showOnlyWhenConflicts)
               
     

    Field Detail

    ROLE

    static final String ROLE
    Method Detail

    edit

    void edit(Reservation reservation)
              throws RaplaException
    Throws:
    RaplaException

    edit

    void edit(Appointment appointment)
              throws RaplaException
    Throws:
    RaplaException

    save

    boolean save(Reservation reservation,
                 Component sourceComponent,
                 boolean showOnlyWhenConflicts)
                 throws RaplaException
    Throws:
    RaplaException

    getEditWindows

    ReservationEdit[] getEditWindows()

    copyAppointment

    Appointment copyAppointment(Appointment appointment)
                                throws RaplaException
    copys an appointment without interaction

    Throws:
    RaplaException

    deleteAppointment

    void deleteAppointment(Appointment appointment,
                           Date from,
                           Component sourceComponent,
                           Point point)
                           throws RaplaException
    Throws:
    RaplaException

    copyAppointment

    Appointment copyAppointment(Appointment appointment,
                                Date from,
                                Component sourceComponent,
                                Point point)
                                throws RaplaException
    Throws:
    RaplaException

    pasteAppointment

    void pasteAppointment(Appointment appointment,
                          Date start,
                          Component sourceComponent,
                          Allocatable[] restrictedAllocatables)
                          throws RaplaException
    Throws:
    RaplaException

    moveAppointment

    void moveAppointment(Appointment appointment,
                         Date from,
                         Date newStart,
                         Component sourceComponent,
                         Point p)
                         throws RaplaException
    Throws:
    RaplaException

    resizeAppointment

    void resizeAppointment(Appointment appointment,
                           Date from,
                           Date newStart,
                           Date newEnd,
                           Component sourceComponent,
                           Point p)
                           throws RaplaException
    Throws:
    RaplaException


    Copyright © 2000-2006 Rapla Team. All Rights Reseserved.