Package jmri.jmrix.rps.swing.polling
Class PollDataModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrix.rps.swing.polling.PollDataModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
,MeasurementListener
public class PollDataModel extends javax.swing.table.AbstractTableModel implements MeasurementListener
Pane for user management of RPS alignment.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
ADDRCOL
(package private) static int
IDCOL
(package private) static int
LAST
(package private) static int
LASTTIME
(package private) static int
LASTXCOL
(package private) static int
LASTYCOL
(package private) static int
LASTZCOL
(package private) static int
LONGCOL
(package private) ModifiedFlag
modifiedFlag
(package private) static int
NAMECOL
(package private) static int
POLLCOL
(package private) static int
TYPECOL
-
Constructor Summary
Constructors Constructor Description PollDataModel(ModifiedFlag flag)
-
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)
boolean
isCellEditable(int r, int c)
void
notify(Measurement m)
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
-
NAMECOL
static final int NAMECOL
- See Also:
- Constant Field Values
-
IDCOL
static final int IDCOL
- See Also:
- Constant Field Values
-
ADDRCOL
static final int ADDRCOL
- See Also:
- Constant Field Values
-
LONGCOL
static final int LONGCOL
- See Also:
- Constant Field Values
-
POLLCOL
static final int POLLCOL
- See Also:
- Constant Field Values
-
LASTXCOL
static final int LASTXCOL
- See Also:
- Constant Field Values
-
LASTYCOL
static final int LASTYCOL
- See Also:
- Constant Field Values
-
LASTZCOL
static final int LASTZCOL
- See Also:
- Constant Field Values
-
LASTTIME
static final int LASTTIME
- See Also:
- Constant Field Values
-
LAST
static final int LAST
- See Also:
- Constant Field Values
-
modifiedFlag
ModifiedFlag modifiedFlag
-
TYPECOL
static final int TYPECOL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PollDataModel
public PollDataModel(ModifiedFlag flag)
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
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
-
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
-
notify
public void notify(Measurement m)
- Specified by:
notify
in interfaceMeasurementListener
-
dispose
public void dispose()
-
-