Package jmri.jmrit.beantable
Class LogixNGTableAction.TableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.beantable.BeanTableDataModel<E>
-
- jmri.jmrit.beantable.AbstractLogixNGTableAction.TableModel
-
- jmri.jmrit.beantable.LogixNGTableAction.TableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.io.Serializable,java.util.EventListener,javax.swing.table.TableModel
- Enclosing class:
- LogixNGTableAction
protected class LogixNGTableAction.TableModel extends AbstractLogixNGTableAction.TableModel
- See Also:
- Serialized Form
-
-
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
Fields Modifier and Type Field Description static intSTARTUP_COL-
Fields inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction.TableModel
EDITCOL, ENABLECOL, enabledString
-
Fields inherited from class jmri.jmrit.beantable.BeanTableDataModel
COMMENTCOL, DELETECOL, NUMCOLUMN, SYSNAMECOL, sysNameList, USERNAMECOL, VALUECOL
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureTable(javax.swing.JTable table)Configure a table to have our standard rows and columns.java.lang.Class<?>getColumnClass(int col)intgetColumnCount()Get Column Count INCLUDING Bean Property Columns.java.lang.StringgetColumnName(int col)intgetPreferredWidth(int col)java.lang.StringgetValue(java.lang.String s)Get the current Bean state value in human readable form.java.lang.ObjectgetValueAt(int row, int col)SYSNAMECOL returns the actual Bean, NOT the System Name.booleanisCellEditable(int row, int col)voidsetValueAt(java.lang.Object value, int row, int col)-
Methods inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction.TableModel
clickOn, configDeleteColumn, doDelete, getBeanType, getBySystemName, getByUserName, getManager, getMasterClassName, matchPropertyName
-
Methods inherited from class jmri.jmrit.beantable.BeanTableDataModel
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, updateNameList
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
STARTUP_COL
public static final int STARTUP_COL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TableModel
protected TableModel()
-
-
Method Detail
-
configureTable
public void configureTable(javax.swing.JTable table)
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.TableModel- Parameters:
table-JTableto configure
-
getColumnCount
public int getColumnCount()
Get Column Count INCLUDING Bean Property Columns.- Specified by:
getColumnCountin interfacejavax.swing.table.TableModel- Overrides:
getColumnCountin classBeanTableDataModel<LogixNG>
-
getColumnName
public java.lang.String getColumnName(int col)
Description copied from class:BeanTableDataModel- Specified by:
getColumnNamein interfacejavax.swing.table.TableModel- Overrides:
getColumnNamein classAbstractLogixNGTableAction.TableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int col)
Description copied from class:BeanTableDataModel- Specified by:
getColumnClassin interfacejavax.swing.table.TableModel- Overrides:
getColumnClassin classAbstractLogixNGTableAction.TableModel
-
getPreferredWidth
public int getPreferredWidth(int col)
- Overrides:
getPreferredWidthin classAbstractLogixNGTableAction.TableModel
-
isCellEditable
public boolean isCellEditable(int row, int col)
Description copied from class:BeanTableDataModel- Specified by:
isCellEditablein interfacejavax.swing.table.TableModel- Overrides:
isCellEditablein classAbstractLogixNGTableAction.TableModel
-
getValueAt
public java.lang.Object getValueAt(int row, int col)
Description copied from class:BeanTableDataModelSYSNAMECOL returns the actual Bean, NOT the System Name.- Specified by:
getValueAtin interfacejavax.swing.table.TableModel- Overrides:
getValueAtin classAbstractLogixNGTableAction.TableModel
-
setValueAt
public void setValueAt(java.lang.Object value, int row, int col)
Description copied from class:BeanTableDataModel- Specified by:
setValueAtin interfacejavax.swing.table.TableModel- Overrides:
setValueAtin classAbstractLogixNGTableAction.TableModel
-
getValue
public java.lang.String getValue(java.lang.String s)
Description copied from class:BeanTableDataModelGet the current Bean state value in human readable form.- Overrides:
getValuein classAbstractLogixNGTableAction.TableModel- Parameters:
s- System name of Bean.- Returns:
- state value in localised human readable form.
-
-