Package jmri.jmrit.beantable
Class LRouteTableAction.LBeanTableDataModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.beantable.BeanTableDataModel<Logix>
jmri.jmrit.beantable.LRouteTableAction.LBeanTableDataModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
- Enclosing class:
- LRouteTableAction
-
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
FieldsFields inherited from class jmri.jmrit.beantable.BeanTableDataModel
COMMENTCOL, DELETECOL, NUMCOLUMN, SYSNAMECOL, sysNameList, USERNAMECOL, VALUECOLFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess a click on The value cell.protected voidconfigDeleteColumn(JTable table) voidconfigureTable(JTable table) Configure a table to have our standard rows and columns.protected voidconfigValueColumn(JTable table) protected voidDelete the bean after all the checking has been done.protected StringGet String of the Single Bean Type.getBySystemName(String name) getByUserName(String name) Class<?>getColumnClass(int col) 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?voidsetValueAt(Object value, int row, int col) protected voidOverride to filter out the LRoutes from the rest of Logix.Methods inherited from class jmri.jmrit.beantable.BeanTableDataModel
addEditProperty, addMouseListenerToHeader, allowBlockNameChange, configureButton, configureJTable, copySystemName, copyUserName, deleteBean, dispose, editComment, exportToCSV, formatToolTip, getCellToolTip, getColumnCount, getDisplayDeleteMsg, getFilter, getHeaderTooltip, getPropertyColumnCount, getPropertyColumnDescriptor, getRowCount, isClearUserNameAllowed, makeJTable, moveBean, persistTable, printColumns, printTable, propertyChange, removeName, renameBean, setColumnIdentities, setColumnToHoldButton, setDisplayDeleteMsg, setFilter, setManager, setPropertyColumnsVisible, showPopup, showTableHeaderPopup, stopPersistingTableMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
ENABLECOL
- See Also:
-
EDITCOL
- See Also:
-
-
Constructor Details
-
LBeanTableDataModel
-
-
Method Details
-
updateNameList
Override to filter out the LRoutes from the rest of Logix.- Overrides:
updateNameListin classBeanTableDataModel<Logix>
-
getColumnName
Description copied from class:BeanTableDataModel- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classBeanTableDataModel<Logix>
-
getColumnClass
Description copied from class:BeanTableDataModel- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classBeanTableDataModel<Logix>
-
getPreferredWidth
- Overrides:
getPreferredWidthin classBeanTableDataModel<Logix>
-
isCellEditable
Description copied from class:BeanTableDataModel- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classBeanTableDataModel<Logix>
-
getValueAt
Description copied from class:BeanTableDataModelSYSNAMECOL returns the actual Bean, NOT the System Name.- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classBeanTableDataModel<Logix>
-
setValueAt
Description copied from class:BeanTableDataModel- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classBeanTableDataModel<Logix>
-
doDelete
Delete the bean after all the checking has been done.Deactivate the Logix and remove its conditionals.
- Overrides:
doDeletein classBeanTableDataModel<Logix>- Parameters:
logix- NamedBean to delete
-
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<Logix>- Parameters:
e- the event to match- Returns:
- true if the property name is of interest, false otherwise
-
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<Logix>- Returns:
- current Manager in use by the Model.
-
getBySystemName
- Specified by:
getBySystemNamein classBeanTableDataModel<Logix>
-
getByUserName
- Specified by:
getByUserNamein classBeanTableDataModel<Logix>
-
getMasterClassName
- Specified by:
getMasterClassNamein classBeanTableDataModel<Logix>
-
configureTable
Description copied from class:BeanTableDataModelConfigure a table to have our standard rows and columns. This is optional, in that other table formats can use this table model. But we put it here to help keep it consistent. This also persists the table user interface state.- Overrides:
configureTablein classBeanTableDataModel<Logix>- Parameters:
table-JTableto configure
-
clickOn
Description copied from class:BeanTableDataModelProcess a click on The value cell.- Specified by:
clickOnin classBeanTableDataModel<Logix>- Parameters:
t- the Bean that has been clicked.
-
getValue
Description copied from class:BeanTableDataModelGet the current Bean state value in human readable form.- Specified by:
getValuein classBeanTableDataModel<Logix>- Parameters:
s- System name of Bean.- Returns:
- state value in localised human readable form.
-
configDeleteColumn
- Overrides:
configDeleteColumnin classBeanTableDataModel<Logix>
-
configValueColumn
- Overrides:
configValueColumnin classBeanTableDataModel<Logix>
-
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<Logix>- Returns:
- Bean Type String.
-