@Override public void selectDocument(long docId) { deselectAll(); RecordList rlist = getDataAsRecordList(); Record record = rlist.find("id", Long.toString(docId)); if (record != null) selectRecord(record); }
public Object[] getData() { ArrayList<Object> data = new ArrayList<Object>(); RecordList list = listGrid.getRecordList(); for (int i = 0; i < list.getLength(); i++) { Object obj = list.get(i).getAttributeAsObject("_obj"); data.add(obj); } return data.toArray(); }
private RecordList errorsFromExportResult(Record[] exportResults) { RecordList recordList = new RecordList(); for (Record result : exportResults) { Record[] errors = result.getAttributeAsRecordArray(ExportResourceApi.RESULT_ERRORS); if (errors != null && errors.length > 0) { recordList.addList(errors); } } return recordList; }