|
|
|
|
@ -0,0 +1,53 @@
|
|
|
|
|
package com.studentmanagement.view;
|
|
|
|
|
|
|
|
|
|
import com.studentmanagement.model.Student;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 学生视图接口
|
|
|
|
|
* 定义显示学生信息的方法,实现MVC模式中的视图层
|
|
|
|
|
*/
|
|
|
|
|
public interface StudentView {
|
|
|
|
|
/**
|
|
|
|
|
* 显示学生列表
|
|
|
|
|
* @param students 学生列表
|
|
|
|
|
*/
|
|
|
|
|
void displayStudentList(List<Student> students);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 显示学生详细信息
|
|
|
|
|
* @param student 学生对象
|
|
|
|
|
*/
|
|
|
|
|
void displayStudentDetails(Student student);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 显示筛选后的学生列表
|
|
|
|
|
* @param students 学生列表
|
|
|
|
|
* @param filterCriteria 筛选条件描述
|
|
|
|
|
*/
|
|
|
|
|
void displayFilteredStudents(List<Student> students, String filterCriteria);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 显示成功消息
|
|
|
|
|
* @param message 成功消息内容
|
|
|
|
|
*/
|
|
|
|
|
void displaySuccessMessage(String message);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 显示错误消息
|
|
|
|
|
* @param message 错误消息内容
|
|
|
|
|
*/
|
|
|
|
|
void displayErrorMessage(String message);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 显示统计信息
|
|
|
|
|
* @param statistics 统计信息内容
|
|
|
|
|
*/
|
|
|
|
|
void displayStatistics(String statistics);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 显示主菜单
|
|
|
|
|
*/
|
|
|
|
|
void displayMainMenu();
|
|
|
|
|
}
|