Package jmri.jmrit.dispatcher
Class DispatcherFrame.ActiveTrainsTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.dispatcher.DispatcherFrame.ActiveTrainsTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Enclosing class:
- DispatcherFrame
public class DispatcherFrame.ActiveTrainsTableModel extends javax.swing.table.AbstractTableModel implements java.beans.PropertyChangeListener
Table model for Active Trains Table in Dispatcher window- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALLOCATEBUTTON_COLUMN
static int
ALLOCATED_COLUMN
static int
ALLOCATED_COLUMN_U
static int
CURRENTSIGNAL_COLUMN
static int
CURRENTSIGNAL_COLUMN_U
static int
DCC_ADDRESS
static int
ISAUTO_COLUMN
static int
MAX_COLUMN
static int
MODE_COLUMN
static int
NEXTSECTION_COLUMN
static int
NEXTSECTION_COLUMN_U
static int
RESTARTCHECKBOX_COLUMN
static int
STATUS_COLUMN
static int
TERMINATEBUTTON_COLUMN
static int
TRAIN_COLUMN
static int
TRANSIT_COLUMN
static int
TRANSIT_COLUMN_U
static int
TYPE_COLUMN
-
Constructor Summary
Constructors Constructor Description ActiveTrainsTableModel()
-
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
getPreferredWidth(int col)
int
getRowCount()
java.lang.Object
getValueAt(int r, int c)
boolean
isCellEditable(int row, int col)
void
propertyChange(java.beans.PropertyChangeEvent e)
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
-
TRANSIT_COLUMN
public static final int TRANSIT_COLUMN
- See Also:
- Constant Field Values
-
TRANSIT_COLUMN_U
public static final int TRANSIT_COLUMN_U
- See Also:
- Constant Field Values
-
TRAIN_COLUMN
public static final int TRAIN_COLUMN
- See Also:
- Constant Field Values
-
TYPE_COLUMN
public static final int TYPE_COLUMN
- See Also:
- Constant Field Values
-
STATUS_COLUMN
public static final int STATUS_COLUMN
- See Also:
- Constant Field Values
-
MODE_COLUMN
public static final int MODE_COLUMN
- See Also:
- Constant Field Values
-
ALLOCATED_COLUMN
public static final int ALLOCATED_COLUMN
- See Also:
- Constant Field Values
-
ALLOCATED_COLUMN_U
public static final int ALLOCATED_COLUMN_U
- See Also:
- Constant Field Values
-
NEXTSECTION_COLUMN
public static final int NEXTSECTION_COLUMN
- See Also:
- Constant Field Values
-
NEXTSECTION_COLUMN_U
public static final int NEXTSECTION_COLUMN_U
- See Also:
- Constant Field Values
-
ALLOCATEBUTTON_COLUMN
public static final int ALLOCATEBUTTON_COLUMN
- See Also:
- Constant Field Values
-
TERMINATEBUTTON_COLUMN
public static final int TERMINATEBUTTON_COLUMN
- See Also:
- Constant Field Values
-
RESTARTCHECKBOX_COLUMN
public static final int RESTARTCHECKBOX_COLUMN
- See Also:
- Constant Field Values
-
ISAUTO_COLUMN
public static final int ISAUTO_COLUMN
- See Also:
- Constant Field Values
-
CURRENTSIGNAL_COLUMN
public static final int CURRENTSIGNAL_COLUMN
- See Also:
- Constant Field Values
-
CURRENTSIGNAL_COLUMN_U
public static final int CURRENTSIGNAL_COLUMN_U
- See Also:
- Constant Field Values
-
DCC_ADDRESS
public static final int DCC_ADDRESS
- See Also:
- Constant Field Values
-
MAX_COLUMN
public static final int MAX_COLUMN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActiveTrainsTableModel
public ActiveTrainsTableModel()
-
-
Method Detail
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getColumnClass
public java.lang.Class<?> getColumnClass(int col)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
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
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getPreferredWidth
public int getPreferredWidth(int col)
-
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 row, int col)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
-