use of org.activityinfo.model.type.RecordRef in project activityinfo by bedatadriven.
the class TableGrid method changeRowSelection.
/**
* Changes the current row selection to the user's new selection
*/
private void changeRowSelection(CellSelectionChangedEvent<Integer> event) {
if (proxy.isLoaded()) {
if (!event.getSelection().isEmpty()) {
int rowIndex = event.getSelection().get(0).getModel();
RecordRef selectedRef = new RecordRef(initialTableModel.getFormId(), proxy.getRecordId(rowIndex));
eventBus.fireEvent(new SelectionChangedEvent<>(Collections.singletonList(selectedRef)));
}
}
}
Aggregations