Package jmri.jmrit.throttle
Class ThrottlesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.throttle.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)
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddThrottleFrame(ThrottleWindow tw, ThrottleFrame ntf) intintGet the number of usages of a particular Loco Address.intgetValueAt(int i, int i1) iterator()voidReceive notification that the consist manager has changed its consist list.voidvoidMethods 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
-
iterator
-
addThrottleFrame
-
getNumberOfEntriesFor
Get the number of usages of a particular Loco Address.- Parameters:
la- the Loco Address, can be null.- Returns:
- 0 if no usages, else number of AddressPanel usages.
-
removeThrottleFrame
-
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
-