Package jmri.jmrix.can.cbus.node
Class CbusBasicNodeTable
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.can.cbus.node.CbusBasicNodeTable
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Direct Known Subclasses:
CbusBasicNodeTableOperations
public class CbusBasicNodeTable extends javax.swing.table.AbstractTableModel
Table data model for display of CBUS Nodes- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<CbusNode>
_mainArray
protected CanSystemConnectionMemo
_memo
static int
BYTES_REMAINING_COLUMN
static int
CANID_COLUMN
static java.lang.String[]
COLUMNTOOLTIPS
String array of Column Tool tips.static int
COMMAND_STAT_NUMBER_COLUMN
static int
LAST_BACKUP_COLUMN
static int
MAX_COLUMN
static int
NODE_EDIT_BUTTON_COLUMN
static int
NODE_EVENT_INDEX_VALID_COLUMN
static int
NODE_EVENTS_COLUMN
static int
NODE_IN_LEARN_MODE_COLUMN
static int
NODE_NUMBER_COLUMN
static int
NODE_RESYNC_BUTTON_COLUMN
static int
NODE_TOTAL_BYTES_COLUMN
static int
NODE_TYPE_NAME_COLUMN
static int
NODE_USER_NAME_COLUMN
static int
NUMBER_BACKUPS_COLUMN
protected CbusDccProgrammerManager
progMan
static int
SESSION_BACKUP_STATUS_COLUMN
-
Constructor Summary
Constructors Constructor Description CbusBasicNodeTable(CanSystemConnectionMemo memo, int row, int column)
-
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)
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
boolean
isCellEditable(int row, int col)
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
-
_mainArray
protected java.util.ArrayList<CbusNode> _mainArray
-
_memo
protected final CanSystemConnectionMemo _memo
-
progMan
protected CbusDccProgrammerManager progMan
-
NODE_NUMBER_COLUMN
public static final int NODE_NUMBER_COLUMN
- See Also:
- Constant Field Values
-
NODE_TYPE_NAME_COLUMN
public static final int NODE_TYPE_NAME_COLUMN
- See Also:
- Constant Field Values
-
NODE_USER_NAME_COLUMN
public static final int NODE_USER_NAME_COLUMN
- See Also:
- Constant Field Values
-
NODE_RESYNC_BUTTON_COLUMN
public static final int NODE_RESYNC_BUTTON_COLUMN
- See Also:
- Constant Field Values
-
NODE_EDIT_BUTTON_COLUMN
public static final int NODE_EDIT_BUTTON_COLUMN
- See Also:
- Constant Field Values
-
COMMAND_STAT_NUMBER_COLUMN
public static final int COMMAND_STAT_NUMBER_COLUMN
- See Also:
- Constant Field Values
-
CANID_COLUMN
public static final int CANID_COLUMN
- See Also:
- Constant Field Values
-
NODE_EVENTS_COLUMN
public static final int NODE_EVENTS_COLUMN
- See Also:
- Constant Field Values
-
BYTES_REMAINING_COLUMN
public static final int BYTES_REMAINING_COLUMN
- See Also:
- Constant Field Values
-
NODE_TOTAL_BYTES_COLUMN
public static final int NODE_TOTAL_BYTES_COLUMN
- See Also:
- Constant Field Values
-
NODE_IN_LEARN_MODE_COLUMN
public static final int NODE_IN_LEARN_MODE_COLUMN
- See Also:
- Constant Field Values
-
NODE_EVENT_INDEX_VALID_COLUMN
public static final int NODE_EVENT_INDEX_VALID_COLUMN
- See Also:
- Constant Field Values
-
SESSION_BACKUP_STATUS_COLUMN
public static final int SESSION_BACKUP_STATUS_COLUMN
- See Also:
- Constant Field Values
-
NUMBER_BACKUPS_COLUMN
public static final int NUMBER_BACKUPS_COLUMN
- See Also:
- Constant Field Values
-
LAST_BACKUP_COLUMN
public static final int LAST_BACKUP_COLUMN
- See Also:
- Constant Field Values
-
MAX_COLUMN
public static final int MAX_COLUMN
- See Also:
- Constant Field Values
-
COLUMNTOOLTIPS
public static final java.lang.String[] COLUMNTOOLTIPS
String array of Column Tool tips. Order needs to match column list.
-
-
Constructor Detail
-
CbusBasicNodeTable
public CbusBasicNodeTable(@Nonnull CanSystemConnectionMemo memo, int row, int column)
-
-
Method Detail
-
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
- Returns:
- UserName and Resync Button columns true, else false
-
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
-
-