You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
909 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.studentmanagement.view;
import com.studentmanagement.model.Student;
import java.util.List;
/**
* 学生视图接口,定义视图层的基本功能
* MVC模式中的View部分负责展示数据给用户
*/
public interface StudentView {
/**
* 显示单个学生信息
* @param student 学生对象
*/
void displayStudent(Student student);
/**
* 显示学生列表
* @param students 学生列表
*/
void displayStudentList(List<Student> students);
/**
* 显示成功消息
* @param message 成功消息
*/
void displaySuccessMessage(String message);
/**
* 显示错误消息
* @param message 错误消息
*/
void displayErrorMessage(String message);
/**
* 显示统计信息
* @param message 统计信息
*/
void displayStatistics(String message);
}