Class LncvProgTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.loconet.swing.lncvprog.LncvProgTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
,ProgrammingTool
public class LncvProgTableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener, ProgrammingTool
Table model for the programmed LNCV Modules table. See Sv2f Programing tool- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Roster
_roster
static int
ARTICLE_COLUMN
static int
COUNT_COLUMN
static int
CV_COLUMN
static int
DEVICENAMECOLUMN
protected LncvDevicesManager
lncvdm
static int
MODADDR_COLUMN
static int
NUMCOLUMNS
static int
OPENPRGMRBUTTONCOLUMN
static int
ROSTERENTRYCOLUMN
static int
VALUE_COLUMN
-
Constructor Summary
Constructors Constructor Description LncvProgTableModel(LncvProgPane parent, LocoNetSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
java.lang.Class<?>
getColumnClass(int c)
int
getColumnCount()
java.lang.String
getColumnName(int c)
int
getRowCount()
java.lang.Object
getValueAt(int r, int c)
void
initTable(javax.swing.JTable lncvModulesTable)
boolean
isCellEditable(int r, int c)
void
openPaneOpsProgFrame(RosterEntry re, java.lang.String name, java.lang.String programmerFile, Programmer p)
Open a symbolic programmer for the device in the roster entry.void
propertyChange(java.beans.PropertyChangeEvent evt)
void
setValueAt(java.lang.Object value, int r, int c)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
COUNT_COLUMN
public static final int COUNT_COLUMN
- See Also:
- Constant Field Values
-
ARTICLE_COLUMN
public static final int ARTICLE_COLUMN
- See Also:
- Constant Field Values
-
MODADDR_COLUMN
public static final int MODADDR_COLUMN
- See Also:
- Constant Field Values
-
CV_COLUMN
public static final int CV_COLUMN
- See Also:
- Constant Field Values
-
VALUE_COLUMN
public static final int VALUE_COLUMN
- See Also:
- Constant Field Values
-
DEVICENAMECOLUMN
public static final int DEVICENAMECOLUMN
- See Also:
- Constant Field Values
-
ROSTERENTRYCOLUMN
public static final int ROSTERENTRYCOLUMN
- See Also:
- Constant Field Values
-
OPENPRGMRBUTTONCOLUMN
public static final int OPENPRGMRBUTTONCOLUMN
- See Also:
- Constant Field Values
-
NUMCOLUMNS
public static final int NUMCOLUMNS
- See Also:
- Constant Field Values
-
lncvdm
protected LncvDevicesManager lncvdm
-
-
Constructor Detail
-
LncvProgTableModel
LncvProgTableModel(LncvProgPane parent, @Nonnull LocoNetSystemConnectionMemo memo)
-
-
Method Detail
-
initTable
public void initTable(javax.swing.JTable lncvModulesTable)
-
getColumnName
public java.lang.String getColumnName(int c)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int r, int c)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
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
-
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 r, int c)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
openPaneOpsProgFrame
public void openPaneOpsProgFrame(RosterEntry re, java.lang.String name, java.lang.String programmerFile, Programmer p)
Open a symbolic programmer for the device in the roster entry.- Specified by:
openPaneOpsProgFrame
in interfaceProgrammingTool
- Parameters:
re
- Roster Entry of the device to be programmedname
- name of the device to be programmedprogrammerFile
- the programmer filep
- the programmer
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
dispose
public void dispose()
-
-