EnumTable.java 文件源码

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

项目:openaudible 作者:
public boolean setRowColors(RGB c[]) {
    SWTAsync.assertGUI();
    boolean needRefresh = false;
    if (tableColors != null && tableColors.length != c.length) {
        for (Color tableColor : tableColors) {
            tableColor.dispose();
        }
        tableColors = null;
    }
    if (tableColors == null) {
        tableColors = new Color[c.length];
    }
    for (int x = 0; x < tableColors.length; x++) {
        if (tableColors[x] == null || !tableColors[x].getRGB().equals(c[x])) {
            tableColors[x] = PaintShop.newColor(c[x]);
            needRefresh = true;
        }
    }
    return needRefresh;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号