/** Return key for given object: {workDateDbFormatted}.{startTime24Hour}.{endTime24Hour} */ private String key(Object o) { JournalEntry entry = (JournalEntry) o; return entry.getWorkDateDbFormatted() + "." + entry.getStartTime24Hour() + "." + entry.getEndTime24Hour(); }
@Override public void setValueAt(Object object, int row, int col) { JournalEntry entry = journals.get(row); if (col == 0) { entry.name = (String) object; } else { entry.abbreviation = (String) object; } }