Package jmri.jmrit.throttle.list
Class ThrottlesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.throttle.list.ThrottlesTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel,ConsistListListener
public class ThrottlesTableModel
extends AbstractTableModel
implements PropertyChangeListener, ConsistListListener
A TableModel to display active Throttles in a summary table
(see ThrottlesListPanel)
This file is part of JMRI.
This file is part of JMRI.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetThrottleControllersContainerAt(int col_tw) getValueAt(int row_tf, int col_tw) booleanmoveThrottleController(ThrottleControllerUI tcui, int row, int column) voidReceive notification that the consist manager has changed its consist list.voidMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
ThrottlesTableModel
public ThrottlesTableModel()
-
-
Method Details
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
moveThrottleController
-
getThrottleControllersContainerAt
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
notifyConsistListChanged
Description copied from interface:ConsistListListenerReceive notification that the consist manager has changed its consist list.- Specified by:
notifyConsistListChangedin interfaceConsistListListener
-