Package jmri.jmrit.beantable
Class RailComTableDataModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
TableDataModel for the RailCom Table.
Split from
RailComTableAction- Since:
- 2.11.4
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.beantable.BeanTableDataModel
BeanTableDataModel.BeanTableTooltipHeaderRenderer, BeanTableDataModel.DateRenderer, BeanTableDataModel.DeleteBeanWorker, BeanTableDataModel.HeaderActionListener, BeanTableDataModel.PopupListener, BeanTableDataModel.TableHeaderListener -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class jmri.jmrit.beantable.BeanTableDataModel
COMMENTCOL, SYSNAMECOL, sysNameList, USERNAMECOLFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new Memory Table Data Model. -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess a click on The value cell.voidconfigValueColumn(JTable table) protected StringGet String of the Single Bean Type.getBySystemName(String name) getByUserName(String name) Class<?>getColumnClass(int col) intGet Column Count INCLUDING Bean Property Columns.getColumnName(int col) Get the Table Model Bean Manager.protected StringintgetPreferredWidth(int col) Get the current Bean state value in human readable form.getValueAt(int row, int col) SYSNAMECOL returns the actual Bean, NOT the System Name.booleanisCellEditable(int row, int col) protected booleanIs this property event announcing a change this table should display?final voidsetManager(Manager<IdTag> mgr) Set the Model Bean Manager.voidsetValueAt(Object value, int row, int col) Methods inherited from class jmri.jmrit.beantable.BeanTableDataModel
addEditProperty, addMouseListenerToHeader, allowBlockNameChange, configDeleteColumn, configureJTable, configureTable, copySystemName, copyUserName, deleteBean, dispose, doDelete, editComment, exportToCSV, formatToolTip, getCellToolTip, getDisplayDeleteMsg, getFilter, getHeaderTooltip, getPropertyColumnCount, getPropertyColumnDescriptor, getRowCount, isClearUserNameAllowed, makeJTable, moveBean, persistTable, printColumns, printTable, propertyChange, removeName, renameBean, setColumnIdentities, setColumnToHoldButton, setDisplayDeleteMsg, setFilter, setPropertyColumnsVisible, showPopup, showTableHeaderPopup, stopPersistingTable, updateNameListMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
VALUECOL
- See Also:
-
WHERECOL
- See Also:
-
WHENCOL
- See Also:
-
CLEARCOL
- See Also:
-
SPEEDCOL
- See Also:
-
LOADCOL
- See Also:
-
TEMPCOL
- See Also:
-
FUELCOL
- See Also:
-
WATERCOL
- See Also:
-
LOCATIONCOL
- See Also:
-
ROUTINGCOL
- See Also:
-
DELETECOL
- See Also:
-
NUMCOLUMN
- See Also:
-
-
Constructor Details
-
RailComTableDataModel
Create a new Memory Table Data Model.- Parameters:
mgr- Memory manager to use in the model, default MemoryManager always used.
-
-
Method Details
-
getValue
Description copied from class:BeanTableDataModelGet the current Bean state value in human readable form.- Specified by:
getValuein classBeanTableDataModel<IdTag>- Parameters:
name- System name of Bean.- Returns:
- state value in localised human readable form.
-
setManager
Description copied from class:BeanTableDataModelSet the Model Bean Manager. Note that for many Models this may not work as the manager is currently obtained directly from the Action class.- Overrides:
setManagerin classBeanTableDataModel<IdTag>- Parameters:
mgr- Bean Manager that the Model should use.
-
getManager
Description copied from class:BeanTableDataModelGet 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:
getManagerin classBeanTableDataModel<IdTag>- Returns:
- current Manager in use by the Model.
-
getBySystemName
- Specified by:
getBySystemNamein classBeanTableDataModel<IdTag>
-
getByUserName
- Specified by:
getByUserNamein classBeanTableDataModel<IdTag>
-
clickOn
Description copied from class:BeanTableDataModelProcess a click on The value cell.- Specified by:
clickOnin classBeanTableDataModel<IdTag>- Parameters:
t- the Bean that has been clicked.
-
setValueAt
Description copied from class:BeanTableDataModel- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classBeanTableDataModel<IdTag>
-
getColumnCount
Description copied from class:BeanTableDataModelGet Column Count INCLUDING Bean Property Columns.- Specified by:
getColumnCountin interfaceTableModel- Overrides:
getColumnCountin classBeanTableDataModel<IdTag>
-
getColumnName
Description copied from class:BeanTableDataModel- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classBeanTableDataModel<IdTag>
-
getColumnClass
Description copied from class:BeanTableDataModel- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classBeanTableDataModel<IdTag>
-
isCellEditable
Description copied from class:BeanTableDataModel- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classBeanTableDataModel<IdTag>
-
getValueAt
Description copied from class:BeanTableDataModelSYSNAMECOL returns the actual Bean, NOT the System Name.- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classBeanTableDataModel<IdTag>
-
getPreferredWidth
- Overrides:
getPreferredWidthin classBeanTableDataModel<IdTag>
-
configValueColumn
- Overrides:
configValueColumnin classBeanTableDataModel<IdTag>
-
matchPropertyName
Description copied from class:BeanTableDataModelIs this property event announcing a change this table should display?Note that events will come both from the NamedBeans and also from the manager
- Overrides:
matchPropertyNamein classBeanTableDataModel<IdTag>- Parameters:
e- the event to match- Returns:
- true if the property name is of interest, false otherwise
-
configureButton
- Overrides:
configureButtonin classBeanTableDataModel<IdTag>
-
getMasterClassName
- Specified by:
getMasterClassNamein classBeanTableDataModel<IdTag>
-
getBeanType
Description copied from class:BeanTableDataModelGet String of the Single Bean Type. In many cases the return is Bundle localised so should not be used for matching Bean types.- Overrides:
getBeanTypein classBeanTableDataModel<IdTag>- Returns:
- Bean Type String.
-