department.java
来自「一个java生成自动生成Excel」· Java 代码 · 共 53 行
JAVA
53 行
package net.sf.jxls.sample.model;import java.util.ArrayList;import java.util.List;/** * Sample Department bean to demostrate main excel export features * author: Leonid Vysochyn */public class Department { private String name; private Employee chief; private List staff = new ArrayList(); public Department(String name) { this.name = name; } public Department(String name, Employee chief, List staff) { this.name = name; this.chief = chief; this.staff = staff; } public void addEmployee(Employee employee) { staff.add(employee); } public String getName() { return name; } public void setName(String name) { this.name = name; } public Employee getChief() { return chief; } public void setChief(Employee chief) { this.chief = chief; } public List getStaff() { return staff; } public void setStaff(List staff) { this.staff = staff; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?