Class LocoTableTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- com.jgoodies.binding.adapter.AbstractTableAdapter<LocoModel>
-
- org.bidib.wizard.mvc.locolist.view.LocoTableTableModel
-
- All Implemented Interfaces:
com.jgoodies.binding.adapter.ListModelBindable,Serializable,TableModel
public class LocoTableTableModel extends com.jgoodies.binding.adapter.AbstractTableAdapter<LocoModel>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLUMN_ADDRESSstatic intCOLUMN_DIRECTIONstatic intCOLUMN_FUNCTIONS_1_TO_4static intCOLUMN_FUNCTIONS_13_TO_20static intCOLUMN_FUNCTIONS_21_TO_28static intCOLUMN_FUNCTIONS_5_TO_12static intCOLUMN_FUNCTIONS_LIGHTstatic intCOLUMN_PORT_INSTANCEstatic intCOLUMN_SPEEDstatic intCOLUMN_SPEEDSTEPS-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description LocoTableTableModel(com.jgoodies.binding.list.SelectionInList<LocoModel> boosterList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getColumnClass(int column)ObjectgetValueAt(int rowIndex, int columnIndex)booleanisCellEditable(int row, int column)-
Methods inherited from class com.jgoodies.binding.adapter.AbstractTableAdapter
createChangeHandler, getColumnCount, getColumnName, getListModel, getRow, getRowCount, setListModel
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
COLUMN_ADDRESS
public static final int COLUMN_ADDRESS
- See Also:
- Constant Field Values
-
COLUMN_SPEED
public static final int COLUMN_SPEED
- See Also:
- Constant Field Values
-
COLUMN_DIRECTION
public static final int COLUMN_DIRECTION
- See Also:
- Constant Field Values
-
COLUMN_SPEEDSTEPS
public static final int COLUMN_SPEEDSTEPS
- See Also:
- Constant Field Values
-
COLUMN_FUNCTIONS_LIGHT
public static final int COLUMN_FUNCTIONS_LIGHT
- See Also:
- Constant Field Values
-
COLUMN_FUNCTIONS_1_TO_4
public static final int COLUMN_FUNCTIONS_1_TO_4
- See Also:
- Constant Field Values
-
COLUMN_FUNCTIONS_5_TO_12
public static final int COLUMN_FUNCTIONS_5_TO_12
- See Also:
- Constant Field Values
-
COLUMN_FUNCTIONS_13_TO_20
public static final int COLUMN_FUNCTIONS_13_TO_20
- See Also:
- Constant Field Values
-
COLUMN_FUNCTIONS_21_TO_28
public static final int COLUMN_FUNCTIONS_21_TO_28
- See Also:
- Constant Field Values
-
COLUMN_PORT_INSTANCE
public static final int COLUMN_PORT_INSTANCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocoTableTableModel
public LocoTableTableModel(com.jgoodies.binding.list.SelectionInList<LocoModel> boosterList)
-
-
Method Detail
-
getColumnClass
public Class<?> getColumnClass(int column)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
-
isCellEditable
public boolean isCellEditable(int row, int column)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
-