X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fcorrelate%2FPhotoSelectionTableModel.java;h=dbd9d8e572dcdd21b70acb154125c5c2a12c5e9c;hp=2e9d315b283fc276aa44254479f0a1354109fcc4;hb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f;hpb=52bf9e8686c916be37a26a0b75340393d4478b05 diff --git a/tim/prune/correlate/PhotoSelectionTableModel.java b/tim/prune/correlate/PhotoSelectionTableModel.java index 2e9d315..dbd9d8e 100644 --- a/tim/prune/correlate/PhotoSelectionTableModel.java +++ b/tim/prune/correlate/PhotoSelectionTableModel.java @@ -11,7 +11,7 @@ import tim.prune.data.Photo; */ public class PhotoSelectionTableModel extends AbstractTableModel { - private ArrayList _list = new ArrayList(); + private ArrayList _list = new ArrayList(); /** @@ -53,8 +53,7 @@ public class PhotoSelectionTableModel extends AbstractTableModel */ public PhotoSelectionTableRow getRow(int inRowIndex) { - PhotoSelectionTableRow row = (PhotoSelectionTableRow) _list.get(inRowIndex); - return row; + return _list.get(inRowIndex); } @@ -67,7 +66,7 @@ public class PhotoSelectionTableModel extends AbstractTableModel public Object getValueAt(int inRowIndex, int inColumnIndex) { // TODO: only show time of photos (not date) if dates all identical - PhotoSelectionTableRow row = (PhotoSelectionTableRow) _list.get(inRowIndex); + PhotoSelectionTableRow row = _list.get(inRowIndex); if (inColumnIndex == 0) return row.getPhoto().getFile().getName(); else if (inColumnIndex == 1) return row.getPhoto().getTimestamp().getText(); else if (inColumnIndex == 2) return row.getTimeDiff().getDescription();