item.getItemProperty(cols[i]).setValue(cells[i]);
}
+ if (!(items instanceof Container.ItemSetChangeNotifier)) {
+ resetPageBuffer();
+ refreshRenderedCells();
+ }
+
return itemId;
}
if (ret && (itemId != null) && (itemId.equals(currentPageFirstItemId))) {
currentPageFirstItemId = nextItemId;
}
+ if (!(items instanceof Container.ItemSetChangeNotifier)) {
+ resetPageBuffer();
+ refreshRenderedCells();
+ }
return ret;
}
}
return false;
}
+ if (!(items instanceof Container.PropertySetChangeNotifier)) {
+ resetPageBuffer();
+ refreshRenderedCells();
+ }
return true;
}
*/
public Object addItemAfter(Object previousItemId)
throws UnsupportedOperationException {
- return ((Container.Ordered) items).addItemAfter(previousItemId);
+ Object itemId = ((Container.Ordered) items)
+ .addItemAfter(previousItemId);
+ if (!(items instanceof Container.ItemSetChangeNotifier)) {
+ resetPageBuffer();
+ refreshRenderedCells();
+ }
+ return itemId;
}
/**
*/
public Item addItemAfter(Object previousItemId, Object newItemId)
throws UnsupportedOperationException {
- return ((Container.Ordered) items).addItemAfter(previousItemId,
+ Item item = ((Container.Ordered) items).addItemAfter(previousItemId,
newItemId);
+ if (!(items instanceof Container.ItemSetChangeNotifier)) {
+ resetPageBuffer();
+ refreshRenderedCells();
+ }
+ return item;
}
/**