private void checkForChange() { String sval = getValue(); boolean isDefault = StringUtils.areEqual(sval, getFieldDef().getDefaultValueAsString()); // do not validate default if (isDefault || validate()) { if (!ComparisonUtil.equals(_lastInput, sval)) { ValueChangeEvent.fire(this, sval); _lastInput = sval; } } }
public void updateReport(MonitorItem monItem, BackgroundStatus bgStat) { if (monItem.isComposite()) { for (MonitorItem mi : monItem.getCompositeList()) { if (ComparisonUtil.equals(mi.getID(), bgStat.getID())) { mi.setStatus(bgStat); CompositeJob cR = monItem.getCompositeJob(); CompositeJob newComposite = cR.makeDeltaJob(mi.getStatus()); monItem.setCompositeJob(newComposite); break; } } } else { monItem.setStatus(bgStat); } }