📄 panels.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 + -