Class CbusNodeBackupTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrix.can.cbus.swing.nodeconfig.CbusNodeBackupTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
Table model for Backup Files.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionCbusNodeBackupTableModel(CbusNode nodeOfInterest) Create a new CbusNode Backup Table Model. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getColumnClass(int c) intgetColumnName(int col) static intgetPreferredWidth(int col) intgetValueAt(int r, int c) booleanisCellEditable(int r, int c) voidvoidvoidsetValueAt(Object value, int row, int col) If Backup Comment changes, update backup and save XMLMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
DATE_COLUMN
- See Also:
-
STATUS_COLUMN
- See Also:
-
BYTES_COLUMN
- See Also:
-
COMMENT_COLUMN
- See Also:
-
DESCRIPTION_COLUMN
- See Also:
-
-
Constructor Details
-
CbusNodeBackupTableModel
Create a new CbusNode Backup Table Model.- Parameters:
nodeOfInterest- Node containing the backups.
-
-
Method Details
-
setNode
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getPreferredWidth
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
If Backup Comment changes, update backup and save XML- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-