@SuppressWarnings("unchecked") @Override public Object[] getElements(Context context, STableStatus tablestatus) { GetOnlineReturnListKey key = new GetOnlineReturnListKey( tablestatus.getBeginIndex(), tablestatus.getPageSize(), true, OnlineReturnTab.Approving); key.setSearchText(search.getText()); OnlineReturnListEntity listEntity = context.find(OnlineReturnListEntity.class, key); if (null == listEntity) return null; // int size = listEntity.getItemList().size(); // if (tablestatus.getPageNo() != STableStatus.FIRSTPAGE) { // String preSize = countLabel.getText(); // if (StringHelper.isNotEmpty(preSize)) { // size += Integer.parseInt(preSize); // } // } countLabel.setText(listEntity.getTotalCount() + ""); return listEntity.getItemList().toArray(); }