⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 panels.java

📁 This project developed in java leads us to realize a flight reservation system in order to emulate d
💻 JAVA
字号:
/*
 * Panels.java
 * The package panels contains the different class executing the different windows of each function of the FlightSystem Reservation.
 */
package reservation.system.panels;

import reservation.Action;
import javax.swing.JPanel;

/**
 * This class uniform the way to call each sub-class (CreatePanel, ReservePanel, CancelPanel, Panel) that processes the commands.
 * It delegates to the sub-class the implementation of the function execute () and init ().
 * Also it masks the machinery and helps the developer who wants to reuse the program.
 * @author Texier Mathieu and Frederic Bidon
 */
abstract public class Panels extends JPanel implements Action {
    
    /**
     * Instantiate a new Panel
     */    
    public Panels () {
        super();
    }
    
    /**
     * Initialise the dialogs磃ield
     */    
    abstract public void init ();
    
    /**
     * Proceed the execution of the action
     * @param unUsed not used
     * @throws Exception if the command is not executed.
     * @return the result of the request.
     */    
    abstract public String execute (String[] unUsed) throws Exception;
    
    /**
     * Action requested
     */    
    protected Action action;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -