booking system

  1. /*
  2.  * Panels.java
  3.  * The package panels contains the different class executing the different windows of each function of the FlightSystem Reservation.
  4.  */
  5. package reservation.system.panels;
  6.  
  7. import reservation.Action;
  8. import javax.swing.JPanel;
  9.  
  10. /**
  11.  * This class uniform the way to call each sub-class (CreatePanel, ReservePanel, CancelPanel, Panel) that processes the commands.
  12.  * It delegates to the sub-class the implementation of the function execute () and init ().
  13.  * Also it masks the machinery and helps the developer who wants to reuse the program.
  14.  * @author Texier Mathieu and Frederic Bidon
  15.  */
  16. abstract public class Panels extends JPanel implements Action {
  17.    
  18.     /**
  19.      * Instantiate a new Panel
  20.      */    
  21.     public Panels () {
  22.         super();
  23.     }
  24.    
  25.     /**
  26.      * Initialise the dialogs´field
  27.      */    
  28.     abstract public void init ();
  29.    
  30.     /**
  31.      * Proceed the execution of the action
  32.      * @param unUsed not used
  33.      * @throws Exception if the command is not executed.
  34.      * @return the result of the request.
  35.      */    
  36.     abstract public String execute (String[] unUsed) throws Exception;
  37.    
  38.     /**
  39.      * Action requested
  40.      */    
  41.     protected Action action;
  42. }

contact - link to this site