Package jmri.jmrix.can.cbus.node
Class CbusNodeEventTableDataModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.can.cbus.node.CbusNodeEventTableDataModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
public class CbusNodeEventTableDataModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Table data model for display of CBUS Nodes- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
EV_INDEX_COLUMN
static int
EV_VARS_COLUMN
static int
EVENT_NAME_COLUMN
static int
EVENT_NUMBER_COLUMN
static int
MAX_COLUMN
static int
NODE_EDIT_BUTTON_COLUMN
static int
NODE_NAME_COLUMN
static int
NODE_NUMBER_COLUMN
-
Constructor Summary
Constructors Constructor Description CbusNodeEventTableDataModel(NodeConfigToolPane mainpane, CanSystemConnectionMemo memo, int row, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Removes Node Listener if still monitoring a Node.java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
boolean
isCellEditable(int row, int col)
void
propertyChange(java.beans.PropertyChangeEvent ev)
(package private) void
removeRow(int row)
Remove Row from tablevoid
setNode(CbusNode node)
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
-
NODE_NUMBER_COLUMN
public static final int NODE_NUMBER_COLUMN
- See Also:
- Constant Field Values
-
EVENT_NUMBER_COLUMN
public static final int EVENT_NUMBER_COLUMN
- See Also:
- Constant Field Values
-
NODE_EDIT_BUTTON_COLUMN
public static final int NODE_EDIT_BUTTON_COLUMN
- See Also:
- Constant Field Values
-
NODE_NAME_COLUMN
public static final int NODE_NAME_COLUMN
- See Also:
- Constant Field Values
-
EVENT_NAME_COLUMN
public static final int EVENT_NAME_COLUMN
- See Also:
- Constant Field Values
-
EV_VARS_COLUMN
public static final int EV_VARS_COLUMN
- See Also:
- Constant Field Values
-
EV_INDEX_COLUMN
public static final int EV_INDEX_COLUMN
- See Also:
- Constant Field Values
-
MAX_COLUMN
public static final int MAX_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CbusNodeEventTableDataModel
public CbusNodeEventTableDataModel(NodeConfigToolPane mainpane, CanSystemConnectionMemo memo, int row, int column)
-
-
Method Detail
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
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)
- Specified by:
getValueAt
in interfacejavax.swing.table.TableModel
-
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
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent ev)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
dispose
public void dispose()
Removes Node Listener if still monitoring a Node.
-
removeRow
void removeRow(int row)
Remove Row from table- Parameters:
row
- int row number
-
-