Class CMRInetMetricsFrame.NetMetricsTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.cmri.serial.cmrinetmanager.CMRInetMetricsFrame.NetMetricsTableModel
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.table.TableModel
- Enclosing class:
- CMRInetMetricsFrame
public class CMRInetMetricsFrame.NetMetricsTableModel extends javax.swing.table.AbstractTableModel
Set up table for displaying the Error metrics- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intBLANK_COLUMNstatic intERRORCOUNT_COLUMNstatic intERRORNAME_COLUMNstatic intERRORRESET_COLUMNstatic intNUMCOLUMNS
-
Constructor Summary
Constructors Constructor Description NetMetricsTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getColumnClass(int r, int c)intgetColumnCount()java.lang.StringgetColumnName(int c)intgetRowCount()java.lang.ObjectgetValueAt(int r, int c)booleanisCellEditable(int r, int c)voidsetValueAt(int value, int r, int c)-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
ERRORNAME_COLUMN
public static final int ERRORNAME_COLUMN
- See Also:
- Constant Field Values
-
ERRORCOUNT_COLUMN
public static final int ERRORCOUNT_COLUMN
- See Also:
- Constant Field Values
-
BLANK_COLUMN
public static final int BLANK_COLUMN
- See Also:
- Constant Field Values
-
ERRORRESET_COLUMN
public static final int ERRORRESET_COLUMN
- See Also:
- Constant Field Values
-
NUMCOLUMNS
public static final int NUMCOLUMNS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NetMetricsTableModel
public NetMetricsTableModel()
-
-
Method Detail
-
getColumnName
public java.lang.String getColumnName(int c)
- Specified by:
getColumnNamein interfacejavax.swing.table.TableModel- Overrides:
getColumnNamein classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int r, int c)
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditablein interfacejavax.swing.table.TableModel- Overrides:
isCellEditablein classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
getValueAt
public java.lang.Object getValueAt(int r, int c)
-
setValueAt
public void setValueAt(int value, int r, int c)
-
-