public class CheckResultTableModel extends AbstractTableModel implements Comparator<Object[]>
Modifier and Type | Field and Description |
---|---|
protected boolean |
ascending |
protected CheckResult |
checkResult |
protected List<Object[]> |
data |
protected int |
sortedBy |
listenerList
Constructor and Description |
---|
CheckResultTableModel(CheckResult checkResult) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseListenerToHeaderInTable(JTable table) |
protected void |
addOneData(Object o,
String type,
String level,
List<String> list,
Collection<Object[]> result) |
int |
compare(Object[] data1,
Object[] data2) |
protected void |
computeData() |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
Object |
getValueAt(int row,
int column) |
void |
setCheckResult(CheckResult checkResult) |
void |
setSortedBy(int column) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected CheckResult checkResult
protected int sortedBy
protected boolean ascending
public CheckResultTableModel(CheckResult checkResult)
public void setCheckResult(CheckResult checkResult)
protected void computeData()
protected void addOneData(Object o, String type, String level, List<String> list, Collection<Object[]> result)
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
public void setSortedBy(int column)
public int compare(Object[] data1, Object[] data2)
compare
in interface Comparator<Object[]>
public void addMouseListenerToHeaderInTable(JTable table)
Copyright © 1999–2020 CodeLutin. All rights reserved.