// index
Container.Indexed indexed = ((Container.Indexed) items);
- List<?> itemIds = indexed.getItemIds(firstIndex, rows);
+ List<?> itemIds = getItemIds(firstIndex, rows);
for (int i = 0; i < rows && i < itemIds.size(); i++) {
Object id = itemIds.get(i);
// Start by parsing the values, id should already be set
return cells;
}
+ protected List<Object> getItemIds(int firstIndex, int rows) {
+ return (List<Object>) ((Container.Indexed) items).getItemIds(
+ firstIndex, rows);
+ }
+
/**
* Update a cache array for a row, register any relevant listeners etc.
*
return Logger.getLogger(TreeTable.class.getName());
}
+ @Override
+ protected List<Object> getItemIds(int firstIndex, int rows) {
+ List<Object> itemIds = new ArrayList<Object>();
+ for (int i = firstIndex; i < firstIndex + rows; i++) {
+ itemIds.add(getIdByIndex(i));
+ }
+ return itemIds;
+ }
}