Class PortalTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel,Disposable
Can be used with two interfaces:
- original "desktop" InternalFrames (parent class TableFrames, an extended JmriJFrame)
- JMRI standard Tabbed tables (parent class JPanel)
This file is part of JMRI.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intfinal intstatic final intstatic final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Called when disposing of a disposable.protected StringClass<?>getColumnClass(int col) intgetColumnName(int col) intgetPreferredWidth(int col) intgetValueAt(int row, int col) voidbooleanisCellEditable(int row, int col) voidvoidsetValueAt(Object value, int row, int col) protected intverifyWarning(String message) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
FROM_BLOCK_COLUMN
- See Also:
-
NAME_COLUMN
- See Also:
-
TO_BLOCK_COLUMN
- See Also:
-
DELETE_COL
- See Also:
-
EDIT_COL
- See Also:
-
NUMCOLS
- See Also:
-
-
Constructor Details
-
PortalTableModel
-
-
Method Details
-
initListeners
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getPreferredWidth
-
getBeanType
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
verifyWarning
-
dispose
Description copied from interface:DisposableCalled when disposing of a disposable.Note there are no assurances this method will not be called multiple times against a single instance of this Disposable. It is the responsibility of this Disposable to protect itself and the application from ensuring that calling this method multiple times has no unwanted side effects.
- Specified by:
disposein interfaceDisposable
-