Class CbusNodeBackupTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.can.cbus.swing.nodeconfig.CbusNodeBackupTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
public class CbusNodeBackupTableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Table model for Backup Files.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
BYTES_COLUMN
static int
COMMENT_COLUMN
static int
DATE_COLUMN
static int
DESCRIPTION_COLUMN
static int
STATUS_COLUMN
-
Constructor Summary
Constructors Constructor Description CbusNodeBackupTableModel(CbusNode nodeOfInterest)
Create a new CbusNode Backup Table Model.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int c)
int
getColumnCount()
java.lang.String
getColumnName(int col)
static int
getPreferredWidth(int col)
int
getRowCount()
java.lang.Object
getValueAt(int r, int c)
boolean
isCellEditable(int r, int c)
void
propertyChange(java.beans.PropertyChangeEvent ev)
void
setNode(CbusNode newNode)
void
setValueAt(java.lang.Object value, int row, int col)
If Backup Comment changes, update backup and save XML-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
DATE_COLUMN
public static final int DATE_COLUMN
- See Also:
- Constant Field Values
-
STATUS_COLUMN
public static final int STATUS_COLUMN
- See Also:
- Constant Field Values
-
BYTES_COLUMN
public static final int BYTES_COLUMN
- See Also:
- Constant Field Values
-
COMMENT_COLUMN
public static final int COMMENT_COLUMN
- See Also:
- Constant Field Values
-
DESCRIPTION_COLUMN
public static final int DESCRIPTION_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CbusNodeBackupTableModel
public CbusNodeBackupTableModel(CbusNode nodeOfInterest)
Create a new CbusNode Backup Table Model.- Parameters:
nodeOfInterest
- Node containing the backups.
-
-
Method Detail
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent ev)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getPreferredWidth
public static int getPreferredWidth(int col)
-
getValueAt
public java.lang.Object getValueAt(int r, int c)
- Specified by:
getValueAt
in interfacejavax.swing.table.TableModel
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)
If Backup Comment changes, update backup and save XML- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
-