Package jmri.jmrit.consisttool
Class ConsistDataModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.consisttool.ConsistDataModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class ConsistDataModel extends javax.swing.table.AbstractTableModel
Table data model for display of consist information.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
DIRECTIONCOLUMN
-
Constructor Summary
Constructors Constructor Description ConsistDataModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
Consist
getConsist()
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
(package private) void
initTable(javax.swing.JTable ConsistTable)
boolean
isCellEditable(int row, int col)
void
setConsist(Consist consist)
void
setConsist(DccLocoAddress Address)
void
setValueAt(java.lang.Object value, int row, int col)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
DIRECTIONCOLUMN
static final int DIRECTIONCOLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConsistDataModel
ConsistDataModel()
-
-
Method Detail
-
initTable
void initTable(javax.swing.JTable ConsistTable)
-
setConsist
public void setConsist(Consist consist)
-
setConsist
public void setConsist(DccLocoAddress Address)
-
getConsist
public Consist getConsist()
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int col)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
-