⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 countryentity.java

📁 SWT的原代码是我写的TableViewer视图
💻 JAVA
字号:
/**
 * @作者:陈刚
 * @Email:glchengang@yeah.net
 * @Blog:http://blog.csdn.net/glchengang
 */
package jface.treeviewer;

import java.util.List;

/**
 * 国家实体类
 */
public class CountryEntity implements ITreeEntry {

    private Long id; //唯一识别码,在数据库里常为自动递增的ID列

    private String name; //国家名

    private List cities; //此国家所包含的的城市的集合,集合元素为City对象

    public CountryEntity() {
    }

    public CountryEntity(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setChildren(List children) {
        this.cities = children;
    }

    public List getChildren() {
        return cities;
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -