Class SchedulesTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.operations.OperationsTableModel
-
- jmri.jmrit.operations.locations.schedules.SchedulesTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
public class SchedulesTableModel extends OperationsTableModel implements java.beans.PropertyChangeListener
Table Model for edit of schedules used by operations- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.operations.OperationsTableModel
OperationsTableModel.MyTableCellRenderer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JTable
_table
protected java.util.Hashtable<Schedule,java.lang.String>
comboSelect
(package private) static int
DELETE_COLUMN
(package private) static int
EDIT_COLUMN
(package private) static int
ID_COLUMN
(package private) static int
MODE_COLUMN
(package private) static int
NAME_COLUMN
(package private) static int
SCHEDULE_STATUS_COLUMN
(package private) ScheduleManager
scheduleManager
(package private) ScheduleEditFrame
sef
int
SORTBYID
int
SORTBYNAME
(package private) static int
SPUR_COLUMN
(package private) static int
SPUR_NUMBER_COLUMN
(package private) static int
STATUS_COLUMN
(package private) java.util.List<Schedule>
sysList
-
Constructor Summary
Constructors Constructor Description SchedulesTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
comboBoxActionPerformed(java.awt.event.ActionEvent ae)
void
dispose()
java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
protected java.awt.Color
getForegroundColor(int row)
int
getRowCount()
java.lang.Object
getValueAt(int row, int col)
void
initTable(SchedulesTableFrame frame, javax.swing.JTable table)
boolean
isCellEditable(int row, int col)
void
propertyChange(java.beans.PropertyChangeEvent e)
void
setSort(int sort)
void
setValueAt(java.lang.Object value, int row, int col)
-
Methods inherited from class jmri.jmrit.operations.OperationsTableModel
initTable
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
scheduleManager
ScheduleManager scheduleManager
-
ID_COLUMN
static final int ID_COLUMN
- See Also:
- Constant Field Values
-
NAME_COLUMN
static final int NAME_COLUMN
- See Also:
- Constant Field Values
-
SCHEDULE_STATUS_COLUMN
static final int SCHEDULE_STATUS_COLUMN
- See Also:
- Constant Field Values
-
SPUR_NUMBER_COLUMN
static final int SPUR_NUMBER_COLUMN
- See Also:
- Constant Field Values
-
SPUR_COLUMN
static final int SPUR_COLUMN
- See Also:
- Constant Field Values
-
STATUS_COLUMN
static final int STATUS_COLUMN
- See Also:
- Constant Field Values
-
MODE_COLUMN
static final int MODE_COLUMN
- See Also:
- Constant Field Values
-
EDIT_COLUMN
static final int EDIT_COLUMN
- See Also:
- Constant Field Values
-
DELETE_COLUMN
static final int DELETE_COLUMN
- See Also:
- Constant Field Values
-
SORTBYNAME
public final int SORTBYNAME
- See Also:
- Constant Field Values
-
SORTBYID
public final int SORTBYID
- See Also:
- Constant Field Values
-
_table
javax.swing.JTable _table
-
sef
ScheduleEditFrame sef
-
comboSelect
protected java.util.Hashtable<Schedule,java.lang.String> comboSelect
-
-
Constructor Detail
-
SchedulesTableModel
public SchedulesTableModel()
-
-
Method Detail
-
setSort
public void setSort(int sort)
-
initTable
public void initTable(SchedulesTableFrame frame, javax.swing.JTable table)
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfacejavax.swing.table.TableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
-
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
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
- 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
-
getForegroundColor
protected java.awt.Color getForegroundColor(int row)
- Overrides:
getForegroundColor
in classOperationsTableModel
-
comboBoxActionPerformed
protected void comboBoxActionPerformed(java.awt.event.ActionEvent ae)
-
dispose
public void dispose()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
-