Go to the documentation of this file.
19package org.sleuthkit.autopsy.datasourcesummary.uiutils;
21import java.util.ArrayList;
22import java.util.Collections;
24import java.util.function.Function;
25import javax.swing.table.AbstractTableModel;
34 private final List<Function<T, ? extends Object>>
columns;
35 private List<T>
dataRows = Collections.emptyList();
56 this.dataRows =
dataRows ==
null ? Collections.emptyList() :
new ArrayList<>(
dataRows);
57 super.fireTableDataChanged();
71 public Object
getValueAt(
int rowIndex,
int columnIndex) {
73 if (rowIndex < 0 || rowIndex >=
dataRows.size() || columnIndex < 0 || columnIndex >=
columns.size()) {
Object getValueAt(int rowIndex, int columnIndex)
final List< Function< T, ? extends Object > > columns
DefaultListTableModel(List< Function< T, ? extends Object > > columns)
void setDataRows(List< T > dataRows)
static final long serialVersionUID
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.