Package org.bidib.wizard.mvc.main.model
Class InputPortTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- javax.swing.table.DefaultTableModel
-
- org.bidib.wizard.client.common.model.SimplePortTableModel<S,P,L>
-
- org.bidib.wizard.client.common.model.SimpleHierarchicalPortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
- org.bidib.wizard.mvc.main.model.InputPortTableModel
-
- All Implemented Interfaces:
com.jidesoft.grid.HeaderStyleModel,com.jidesoft.grid.HierarchicalTableModel,com.jidesoft.grid.StyleModel,Serializable,TableModel
public class InputPortTableModel extends SimpleHierarchicalPortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLUMN_IO_BEHAVIOURstatic intCOLUMN_PORT_IDENTIFIERstatic intCOLUMN_PORT_INSTANCEstatic intCOLUMN_STATUSstatic intCOLUMN_SWITCH_OFF_TIME-
Fields inherited from class org.bidib.wizard.client.common.model.SimpleHierarchicalPortTableModel
COLUMN_LABEL
-
Fields inherited from class org.bidib.wizard.client.common.model.SimplePortTableModel
columnNames, isSetPortValuesDisabled, portListener
-
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description InputPortTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow(org.bidib.wizard.model.ports.InputPort port)voidchangePortType(org.bidib.jbidibc.messages.enums.LcOutputType portType, org.bidib.wizard.model.ports.InputPort port)Class<?>getColumnClass(int column)intgetColumnPortInstance()protected org.bidib.wizard.model.ports.InputPortgetRow(int rowIndex)ObjectgetValueAt(int row, int column)protected voidinitialize()booleanisCellEditable(int row, int column)voidnotifyPortConfigChanged(org.bidib.wizard.model.ports.InputPort port)voidnotifyPortLabelChanged(org.bidib.wizard.model.ports.InputPort port)voidnotifyPortStatusChanged(org.bidib.wizard.model.ports.InputPort port)voidrefreshRow(org.bidib.wizard.model.ports.InputPort port, IntConsumer rowConsumer)voidsetValueAt(Object value, int row, int column)voidupdatePortConfig(org.bidib.wizard.model.ports.InputPort port)Set the new port config values of the port.-
Methods inherited from class org.bidib.wizard.client.common.model.SimpleHierarchicalPortTableModel
getCellStyleAt, getChildValueAt, getHeaderStyleAt, hasChild, isCellStyleOn, isCollapsed, isExpandable, isHeaderStyleOn, isHierarchical, setCollapsed
-
Methods inherited from class org.bidib.wizard.client.common.model.SimplePortTableModel
addPortTableLayoutListener, fireLabelChanged, firePortTableLayoutChanged, fireTestButtonPressed, getTestColumnIndex, setPortListener, setPortValuesProcessing
-
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
COLUMN_IO_BEHAVIOUR
public static final int COLUMN_IO_BEHAVIOUR
- See Also:
- Constant Field Values
-
COLUMN_SWITCH_OFF_TIME
public static final int COLUMN_SWITCH_OFF_TIME
- See Also:
- Constant Field Values
-
COLUMN_PORT_IDENTIFIER
public static final int COLUMN_PORT_IDENTIFIER
- See Also:
- Constant Field Values
-
COLUMN_STATUS
public static final int COLUMN_STATUS
- See Also:
- Constant Field Values
-
COLUMN_PORT_INSTANCE
public static final int COLUMN_PORT_INSTANCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnPortInstance
public int getColumnPortInstance()
- Specified by:
getColumnPortInstancein classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
initialize
protected void initialize()
- Overrides:
initializein classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
addRow
public void addRow(org.bidib.wizard.model.ports.InputPort port)
- Overrides:
addRowin classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
isCellEditable
public boolean isCellEditable(int row, int column)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
getColumnClass
public Class<?> getColumnClass(int column)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
getValueAt
public Object getValueAt(int row, int column)
- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classDefaultTableModel
-
setValueAt
public void setValueAt(Object value, int row, int column)
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classDefaultTableModel
-
notifyPortStatusChanged
public void notifyPortStatusChanged(org.bidib.wizard.model.ports.InputPort port)
- Specified by:
notifyPortStatusChangedin classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
notifyPortConfigChanged
public void notifyPortConfigChanged(org.bidib.wizard.model.ports.InputPort port)
- Specified by:
notifyPortConfigChangedin classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
notifyPortLabelChanged
public void notifyPortLabelChanged(org.bidib.wizard.model.ports.InputPort port)
- Specified by:
notifyPortLabelChangedin classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
refreshRow
public void refreshRow(org.bidib.wizard.model.ports.InputPort port, IntConsumer rowConsumer)- Specified by:
refreshRowin classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
updatePortConfig
public void updatePortConfig(org.bidib.wizard.model.ports.InputPort port)
Set the new port config values of the port.- Parameters:
port- the port with the new port config values
-
changePortType
public void changePortType(org.bidib.jbidibc.messages.enums.LcOutputType portType, org.bidib.wizard.model.ports.InputPort port)- Overrides:
changePortTypein classSimplePortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
getRow
protected org.bidib.wizard.model.ports.InputPort getRow(int rowIndex)
- Specified by:
getRowin classSimpleHierarchicalPortTableModel<org.bidib.wizard.model.status.InputPortStatus,org.bidib.wizard.model.ports.InputPort,InputPortModelListener>
-
-