Go to the documentation of this file.
19package org.sleuthkit.autopsy.centralrepository.optionspanel;
21import java.util.ArrayList;
23import javax.swing.table.AbstractTableModel;
24import org.openide.util.NbBundle.Messages;
25import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
26import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource;
31class CasesTableModel
extends AbstractTableModel {
33 private static final long serialVersionUID = 1L;
38 private final List<CaseDataSourcesWrapper> eamCases;
44 eamCases =
new ArrayList<>();
48 public int getColumnCount() {
53 public int getRowCount() {
54 return eamCases.size();
58 public String getColumnName(
int colIdx) {
63 public Object getValueAt(
int rowIdx,
int colIdx) {
64 if (eamCases.isEmpty()) {
65 return Bundle.CasesTableModel_noData();
79 @Messages({
"CasesTableModel.noData=No Cases"})
81 CaseDataSourcesWrapper eamCase = eamCases.get(rowIdx);
82 String value = Bundle.CasesTableModel_noData();
86 value = eamCase.getDisplayName();
89 value = eamCase.getCreationDate();
98 public Class<String> getColumnClass(
int colIdx) {
107 void addEamCase(CorrelationCase eamCase, List<CorrelationDataSource> dataSourceList) {
108 eamCases.add(
new CaseDataSourcesWrapper(eamCase, dataSourceList));
109 fireTableDataChanged();
121 CaseDataSourcesWrapper getEamCase(
int listIndex) {
122 return eamCases.get(listIndex);
128 @Messages({
"CasesTableModel.case=Case Name",
129 "CasesTableModel.creationDate=Creation Date"})
CaseTableColumns(String columnName)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.