Package jmri.jmrit.conditional
Class ConditionalListEdit.ConditionalTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.conditional.ConditionalListEdit.ConditionalTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
- Enclosing class:
- ConditionalListEdit
public class ConditionalListEdit.ConditionalTableModel
extends AbstractTableModel
implements PropertyChangeListener
Table model for Conditionals in the Edit Logix pane.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getColumnClass(int c) intgetColumnName(int col) intgetPreferredWidth(int col) intgetValueAt(int row, int col) booleanisCellEditable(int r, int c) (package private) booleanCheck if this property event is announcing a change this table should display.voidvoidsetValueAt(Object value, int row, int col) (package private) voidMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
SNAME_COLUMN
- See Also:
-
UNAME_COLUMN
- See Also:
-
STATE_COLUMN
- See Also:
-
BUTTON_COLUMN
- See Also:
-
-
Constructor Details
-
ConditionalTableModel
public ConditionalTableModel()
-
-
Method Details
-
updateConditionalListeners
void updateConditionalListeners() -
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
matchPropertyName
Check if this property event is announcing a change this table should display.Note that events will come both from the NamedBeans and from the manager.
- Parameters:
e- the event heard- Returns:
- true if a change in State or Appearance was heard
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getPreferredWidth
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-