@Override public Object getValueAt(int rowIndex, int columnIndex) { Object retVal = null; final Session session = getSession(); if (session != null && rowIndex < session.getRecordCount()) { final Record record = session.getRecord(rowIndex); if (columnIndex == Columns.RECORD_INDEX.ordinal()) { retVal = rowIndex + 1; } else if (columnIndex == Columns.SPEAKER.ordinal()) { retVal = record.getSpeaker(); } else { final String tierName = getColumnName(columnIndex); retVal = record.getTier(tierName); } } return retVal; }
@Override public int getRowCount() { final Session session = getSession(); return (session != null ? session.getRecordCount() : 0); }