Class SpeedProfileTable.SpeedTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.roster.swing.speedprofile.SpeedProfileTable.SpeedTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- SpeedProfileTable
class SpeedProfileTable.SpeedTableModel extends javax.swing.table.AbstractTableModel
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
FORWARD_FACTOR_COL
(package private) static int
FORWARD_SPEED_COL
(package private) static int
NUMCOLS
(package private) static int
REVERSE_FACTOR_COL
(package private) static int
REVERSE_SPEED_COL
(package private) java.util.ArrayList<java.util.Map.Entry<java.lang.Integer,RosterSpeedProfile.SpeedStep>>
speedArray
(package private) static int
STEP_COL
(package private) static int
THROTTLE_COL
-
Constructor Summary
Constructors Constructor Description SpeedTableModel(RosterSpeedProfile sp)
-
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)
(package private) java.util.Map.Entry<java.lang.Integer,RosterSpeedProfile.SpeedStep>
getEntry(int row)
int
getPreferredWidth(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
-
STEP_COL
static final int STEP_COL
- See Also:
- Constant Field Values
-
THROTTLE_COL
static final int THROTTLE_COL
- See Also:
- Constant Field Values
-
FORWARD_SPEED_COL
static final int FORWARD_SPEED_COL
- See Also:
- Constant Field Values
-
FORWARD_FACTOR_COL
static final int FORWARD_FACTOR_COL
- See Also:
- Constant Field Values
-
REVERSE_SPEED_COL
static final int REVERSE_SPEED_COL
- See Also:
- Constant Field Values
-
REVERSE_FACTOR_COL
static final int REVERSE_FACTOR_COL
- See Also:
- Constant Field Values
-
NUMCOLS
static final int NUMCOLS
- See Also:
- Constant Field Values
-
speedArray
java.util.ArrayList<java.util.Map.Entry<java.lang.Integer,RosterSpeedProfile.SpeedStep>> speedArray
-
-
Constructor Detail
-
SpeedTableModel
SpeedTableModel(RosterSpeedProfile sp)
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
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
-
getPreferredWidth
public int getPreferredWidth(int col)
-
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)
-
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
-
getEntry
java.util.Map.Entry<java.lang.Integer,RosterSpeedProfile.SpeedStep> getEntry(int row)
-
-