149150151152153154155156157158159
Iterator iter = list.iterator(); while (iter.hasNext()) { ColorRule rule = (ColorRule) iter.next(); if ((rule.getBackgroundColor() != null) && (rule.evaluate(event))) { return rule.getBackgroundColor(); } } }
174175176177178179180181182183184
Iterator iter = list.iterator(); while (iter.hasNext()) { ColorRule rule = (ColorRule) iter.next(); if ((rule.getForegroundColor() != null) && (rule.evaluate(event))) { return rule.getForegroundColor(); } } }