Package jmri.jmrit.beantable
Class LogixNGTableAction.TableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
- Enclosing class:
- LogixNGTableAction
protected class LogixNGTableAction.TableModel
extends AbstractLogixNGTableAction<LogixNG>.TableModel
- 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
FieldsFields inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction.TableModel
EDITCOL, ENABLECOL, enabledStringFields 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 TypeMethodDescriptionvoidconfigureTable(JTable table) Configure a table to have our standard rows and columns.Class<?>getColumnClass(int col) intGet Column Count INCLUDING Bean Property Columns.getColumnName(int col) intgetPreferredWidth(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) voidsetValueAt(Object value, int row, int col) Methods inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction.TableModel
clickOn, configDeleteColumn, doDelete, getBeanType, getBySystemName, getByUserName, getManager, getMasterClassName, matchPropertyNameMethods inherited from class jmri.jmrit.beantable.BeanTableDataModel
addEditProperty, addMouseListenerToHeader, allowBlockNameChange, configureButton, configureJTable, configValueColumn, copySystemName, copyUserName, deleteBean, dispose, editComment, exportToCSV, formatToolTip, getCellToolTip, getDisplayDeleteMsg, getFilter, getHeaderTooltip, getPropertyColumnCount, getPropertyColumnDescriptor, getRowCount, isClearUserNameAllowed, makeJTable, moveBean, persistTable, printColumns, printTable, propertyChange, removeName, renameBean, setColumnIdentities, setColumnToHoldButton, setDisplayDeleteMsg, setFilter, setManager, 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
-
STARTUP_COL
- See Also:
-
-
Constructor Details
-
TableModel
protected TableModel()
-
-
Method Details
-
configureTable
Configure 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 classAbstractLogixNGTableAction<LogixNG>.TableModel- Parameters:
table-JTableto configure
-
getColumnCount
Get Column Count INCLUDING Bean Property Columns.- Specified by:
getColumnCountin interfaceTableModel- Overrides:
getColumnCountin classBeanTableDataModel<LogixNG>
-
getColumnName
Description copied from class:BeanTableDataModel- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractLogixNGTableAction<LogixNG>.TableModel
-
getColumnClass
Description copied from class:BeanTableDataModel- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractLogixNGTableAction<LogixNG>.TableModel
-
getPreferredWidth
- Overrides:
getPreferredWidthin classAbstractLogixNGTableAction<LogixNG>.TableModel
-
isCellEditable
Description copied from class:BeanTableDataModel- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractLogixNGTableAction<LogixNG>.TableModel
-
getValueAt
Description copied from class:BeanTableDataModelSYSNAMECOL returns the actual Bean, NOT the System Name.- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classAbstractLogixNGTableAction<LogixNG>.TableModel
-
setValueAt
Description copied from class:BeanTableDataModel- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractLogixNGTableAction<LogixNG>.TableModel
-
getValue
Description copied from class:BeanTableDataModelGet the current Bean state value in human readable form.- Overrides:
getValuein classAbstractLogixNGTableAction<LogixNG>.TableModel- Parameters:
s- System name of Bean.- Returns:
- state value in localised human readable form.
-