Changeset 646 for AE/installer2/src/net/oni2/aeinstaller/gui/modtable
- Timestamp:
- Jan 23, 2013, 12:43:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/modtable/ModTableModel.java
r638 r646 30 30 private HashSet<DownloadSizeListener> listeners = new HashSet<DownloadSizeListener>(); 31 31 32 private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 33 32 34 /** 33 35 * Create a new model … … 58 60 return res; 59 61 case 5: 60 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");61 62 if (mod.getFile() != null) 62 63 return sdf.format(new Date( … … 177 178 install.add(i, items.get(i).isInstalled()); 178 179 } 180 notifyDownloadSize(0); 179 181 fireTableDataChanged(); 180 182 } … … 220 222 public boolean isCellEditable(int rowIndex, int columnIndex) { 221 223 return columnIndex == 0; 224 } 225 226 private void notifyDownloadSize(int size) { 227 for (DownloadSizeListener dsl : listeners) 228 dsl.downloadSizeChanged(size); 222 229 } 223 230 … … 236 243 } 237 244 } 238 for (DownloadSizeListener dsl : listeners) 239 dsl.downloadSizeChanged(size); 245 notifyDownloadSize(size); 240 246 } 241 247 }
Note:
See TracChangeset
for help on using the changeset viewer.