19 package org.sleuthkit.autopsy.centralrepository.contentviewer;
21 import java.util.ArrayList;
22 import java.util.List;
23 import javax.swing.table.AbstractTableModel;
24 import org.openide.util.NbBundle.Messages;
50 return correlationCaseList.size();
53 @Messages({
"OtherOccurrencesCasesTableModel.case=Case",})
56 return Bundle.OtherOccurrencesCasesTableModel_case();
59 @Messages({
"OtherOccurrencesCasesTableModel.noData=No Data."})
63 if (correlationCaseList.isEmpty() || rowIdx < 0
64 || rowIdx >= correlationCaseList.size()
65 || correlationCaseList.get(rowIdx) == null
66 || correlationCaseList.get(rowIdx).getMessage() == null
67 || correlationCaseList.get(rowIdx).getMessage().isEmpty()) {
68 return Bundle.OtherOccurrencesCasesTableModel_noData();
70 return correlationCaseList.get(rowIdx).getMessage();
85 if (correlationCaseList.isEmpty() || rowIdx < 0
86 || rowIdx >= correlationCaseList.size()
87 || correlationCaseList.get(rowIdx) == null) {
90 return correlationCaseList.get(rowIdx).getCorrelationCase();
103 void addCorrelationCase(CorrelationCaseWrapper newCorrelationCaseWrapper) {
104 correlationCaseList.add(newCorrelationCaseWrapper);
105 fireTableDataChanged();
112 correlationCaseList.clear();
113 fireTableDataChanged();
Object getValueAt(int rowIdx, int colIdx)
String getColumnName(int colIdx)
static final long serialVersionUID
Class< String > getColumnClass(int colIdx)
final List< CorrelationCaseWrapper > correlationCaseList