Package jmri.jmrit.picker
Class PickListModel.LightPickModel
- All Implemented Interfaces:
PropertyChangeListener
,Serializable
,EventListener
,TableModel
- Enclosing class:
- PickListModel<E extends NamedBean>
static class PickListModel.LightPickModel extends PickListModel<Light>
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.picker.PickListModel
PickListModel.BlockPickModel, PickListModel.EntryExitPickModel, PickListModel.LightPickModel, PickListModel.LogixPickModel, PickListModel.MemoryPickModel, PickListModel.MultiSensorPickModel, PickListModel.OBlockPickModel, PickListModel.ReporterPickModel, PickListModel.SensorPickModel, PickListModel.SignalHeadPickModel, PickListModel.SignalMastPickModel, PickListModel.TurnoutPickModel, PickListModel.WarrantPickModel
-
Field Summary
Fields Modifier and Type Field Description (package private) LightManager
manager
Fields inherited from class jmri.jmrit.picker.PickListModel
_listMap, _name, _pickList, _sorter, POSITION_COL, rb, SNAME_COLUMN, UNAME_COLUMN
Fields inherited from class jmri.jmrit.beantable.BeanTableDataModel
COMMENTCOL, DELETECOL, NUMCOLUMN, SYSNAMECOL, sysNameList, USERNAMECOL, VALUECOL
-
Constructor Summary
Constructors Constructor Description LightPickModel()
-
Method Summary
Methods inherited from class jmri.jmrit.picker.PickListModel
blockPickModelInstance, clickOn, dispose, entryExitPickModelInstance, getBeanAt, getBeanList, getBeanType, getBySystemName, getByUserName, getColumnClass, getColumnCount, getColumnName, getIndexOf, getMasterClassName, getName, getNumInstances, getRowCount, getTable, getValue, getValueAt, isCellEditable, lightPickModelInstance, logixPickModelInstance, makePickTable, makeSorter, memoryPickModelInstance, multiSensorPickModelInstance, oBlockPickModelInstance, propertyChange, reporterPickModelInstance, sensorPickModelInstance, setValueAt, signalHeadPickModelInstance, signalMastPickModelInstance, turnoutPickModelInstance, updateNameList, warrantPickModelInstance
Methods inherited from class jmri.jmrit.beantable.BeanTableDataModel
addMouseListenerToHeader, configDeleteColumn, configureButton, configureJTable, configureTable, configValueColumn, copyName, deleteBean, doDelete, editComment, getCellToolTip, getDisplayDeleteMsg, getPreferredWidth, getPropertyColumnCount, getPropertyColumnDescriptor, makeJTable, matchPropertyName, moveBean, persistTable, printColumns, printTable, removeName, renameBean, setColumnIdentities, setColumnToHoldButton, setDisplayDeleteMsg, setManager, setPropertyColumnsVisible, showPopup, showTableHeaderPopup, stopPersistingTable
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
Constructor Details
-
Method Details
-
getManager
Get the Table Model Bean Manager. In many cases, especially around Model startup, this will be the Proxy Manager, which is then changed to the hardware specific manager.- Specified by:
getManager
in classPickListModel<Light>
- Returns:
- current Manager in use by the Model.
-
addBean
Return bean with name given in parameter. Create if needed and possible.- Specified by:
addBean
in classPickListModel<Light>
- Parameters:
name
- the System name for the Bean.- Returns:
- the Bean or null if not made.
- Throws:
IllegalArgumentException
- with reason why Bean cannot be created.
-
addBean
- Specified by:
addBean
in classPickListModel<Light>
- Throws:
IllegalArgumentException
-
canAddBean
Check if beans can be added by this model.- Specified by:
canAddBean
in classPickListModel<Light>
- Returns:
- true if model can create beans; false otherwise
-