Changeset 4949
- Timestamp:
- 06/24/08 14:21:11 (5 months ago)
- Files:
-
- 1 modified
-
trunk/src/com/itmill/toolkit/ui/Table.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/itmill/toolkit/ui/Table.java
r4911 r4949 1450 1450 } 1451 1451 1452 if (!(items instanceof Container.ItemSetChangeNotifier)) { 1453 resetPageBuffer(); 1454 refreshRenderedCells(); 1455 } 1456 1452 1457 return itemId; 1453 1458 } … … 2193 2198 currentPageFirstItemId = nextItemId; 2194 2199 } 2200 if (!(items instanceof Container.ItemSetChangeNotifier)) { 2201 resetPageBuffer(); 2202 refreshRenderedCells(); 2203 } 2195 2204 return ret; 2196 2205 } … … 2239 2248 } 2240 2249 return false; 2250 } 2251 if (!(items instanceof Container.PropertySetChangeNotifier)) { 2252 resetPageBuffer(); 2253 refreshRenderedCells(); 2241 2254 } 2242 2255 return true; … … 2480 2493 public Object addItemAfter(Object previousItemId) 2481 2494 throws UnsupportedOperationException { 2482 return ((Container.Ordered) items).addItemAfter(previousItemId); 2495 Object itemId = ((Container.Ordered) items) 2496 .addItemAfter(previousItemId); 2497 if (!(items instanceof Container.ItemSetChangeNotifier)) { 2498 resetPageBuffer(); 2499 refreshRenderedCells(); 2500 } 2501 return itemId; 2483 2502 } 2484 2503 … … 2491 2510 public Item addItemAfter(Object previousItemId, Object newItemId) 2492 2511 throws UnsupportedOperationException { 2493 return((Container.Ordered) items).addItemAfter(previousItemId,2512 Item item = ((Container.Ordered) items).addItemAfter(previousItemId, 2494 2513 newItemId); 2514 if (!(items instanceof Container.ItemSetChangeNotifier)) { 2515 resetPageBuffer(); 2516 refreshRenderedCells(); 2517 } 2518 return item; 2495 2519 } 2496 2520
