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, setValueAtclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected 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 TableModelgetColumnName in class AbstractTableModelpublic int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic Object getValueAt(int row, int column)
getValueAt in interface TableModelpublic void setSortedBy(int column)
public int compare(Object[] data1, Object[] data2)
compare in interface Comparator<Object[]>public void addMouseListenerToHeaderInTable(JTable table)
Copyright © 1999–2015 CodeLutin. All rights reserved.