controllerimpl.java~4~
来自「一个可以实现联网售票的火车售票管理系统」· JAVA~4~ 代码 · 共 48 行
JAVA~4~
48 行
package train.client;
import train.parameter.*;
import java.util.List;
import train.mvc.*;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: 沈阳化工学院计算机</p>
*
* @author 彭胜勇 胡林
* @version 1.0
*/
public class ControllerImpl implements Controller {
Model model;
View view;
public ControllerImpl(Model model, View view) {
this.model = model;
this.view = view;
view.addControllerListener(this);
}
public void processDeleteTrain(Train train) {
this.model.deleteTrain(train);
}
public void processInsertTrain(Train train) {
this.model.insertTrain(train);
}
public void processUpdateTrain(Train train) {
this.model.updateTrain(train);
}
public boolean processQueryTrainWiID(String trainID) {
return this.model.queryTrainWiID(trainID);
}
public boolean processQueryTrainWiSta(String fromSta,String endSta) {
return this.model.queryTrainWiSta(fromSta,endSta);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?