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;
}
EnumTable.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:openaudible
作者:
评论列表
文章目录