fireTableRowsUpdated(rowIndex, rowIndex, columnToValues.getColumnIndices().get(0));
}
}
private void editCell(int rowIndex, int columnIndex, Object value) {
NavigationPosition position = getPosition(rowIndex);
String string = value != null ? trim(value.toString()) : null;
switch (columnIndex) {
case DESCRIPTION_COLUMN_INDEX:
position.setDescription(string);
break;
case DATE_TIME_COLUMN_INDEX:
position.setTime(parseDateTime(value, string));
break;
case TIME_COLUMN_INDEX:
position.setTime(parseTime(value, string, position.getTime()));
break;
case LONGITUDE_COLUMN_INDEX:
position.setLongitude(parseLongitude(value, string));
break;
case LATITUDE_COLUMN_INDEX:
position.setLatitude(parseLatitude(value, string));
break;
case ELEVATION_COLUMN_INDEX:
position.setElevation(parseElevation(value, string));
break;
case SPEED_COLUMN_INDEX:
position.setSpeed(parseSpeed(value, string));
break;
default:
throw new IllegalArgumentException("Row " + rowIndex + ", column " + columnIndex + " does not exist");
}
}