示例#1
0
 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;
     }
   }
 }
示例#2
0
 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);
   }
 }