NationTypeDetailPanel.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:freecol 作者:
/**
 * {@inheritDoc}
 */
@Override
public void addSubTrees(DefaultMutableTreeNode root) {
    DefaultMutableTreeNode parent
        = new DefaultMutableTreeNode(new ColopediaTreeItem(this, getId(),
                getName(), null));

    List<NationType> nations = new ArrayList<>();
    nations.addAll(getSpecification().getEuropeanNationTypes());
    nations.addAll(getSpecification().getREFNationTypes());
    nations.addAll(getSpecification().getIndianNationTypes());
    ImageIcon icon = new ImageIcon(ImageLibrary.getMiscImage(ImageLibrary.BELLS, ImageLibrary.ICON_SIZE));
    for (NationType type : nations) {
        parent.add(buildItem(type, icon));
    }
    root.add(parent);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号