if (newValue!=null) { if (displayGroup()!=null) { log.debug("Setting db # of objects per batch to "+newValue); displayGroup().setNumberOfObjectsPerBatch(newValue.intValue());  if(log.isDebugEnabled()) log.debug("The batch index is being set to : "+ 1); displayGroup().setCurrentBatchIndex(1); } Object context=valueForBinding("d2wContext"); if (context!=null) { NSNotificationCenter.defaultCenter().postNotification("BatchSizeChanged", ERXConstant.integerForInt(newValue.intValue()), new NSDictionary(context,"d2wContext")); } }
newNumberOfObjectsPerBatch = newValue;
    public void setNumberOfObjectsPerBatch(Number newValue) {        if (newValue!=null) {            if (displayGroup()!=null) {                log.debug("Setting db # of objects per batch to "+newValue);                displayGroup().setNumberOfObjectsPerBatch(newValue.intValue());                if(log.isDebugEnabled()) log.debug("The batch index is being set to : "+ 1);                displayGroup().setCurrentBatchIndex(1);            }            Object context=valueForBinding("d2wContext");            if (context!=null) {                NSNotificationCenter.defaultCenter().postNotification("BatchSizeChanged",                                                                      ERXConstant.integerForInt(newValue.intValue()),                                                                      new NSDictionary(context,"d2wContext"));            }        }    }