Package org.bidib.wizard.mvc.main.model
Class SoundPortTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
org.bidib.wizard.client.common.model.SimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort,SoundPortModelListener>
org.bidib.wizard.client.common.model.SimpleHierarchicalPortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort,SoundPortModelListener>
org.bidib.wizard.mvc.main.model.SoundPortTableModel
- All Implemented Interfaces:
com.jidesoft.grid.HeaderStyleModel,com.jidesoft.grid.HierarchicalTableModel,com.jidesoft.grid.StyleModel,Serializable,TableModel
public class SoundPortTableModel
extends SimpleHierarchicalPortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort,SoundPortModelListener>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class org.bidib.wizard.client.common.model.SimplePortTableModel
columnNames, isSetPortValuesDisabled, portListenerFields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVectorFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRow(org.bidib.wizard.model.ports.SoundPort port) voidchangePortType(org.bidib.jbidibc.messages.enums.LcOutputType portType, org.bidib.wizard.model.ports.Port<? extends org.bidib.wizard.model.status.BidibStatus> port) voidfireTestButtonPressed(org.bidib.wizard.model.ports.SoundPort port) Class<?> getColumnClass(int column) intprotected org.bidib.wizard.model.ports.SoundPortgetRow(int rowIndex) getValueAt(int row, int column) protected voidbooleanisCellEditable(int row, int column) voidnotifyPortConfigChanged(org.bidib.wizard.model.ports.SoundPort port) voidnotifyPortLabelChanged(org.bidib.wizard.model.ports.SoundPort port) voidnotifyPortStatusChanged(org.bidib.wizard.model.ports.SoundPort port) voidrefreshRow(org.bidib.wizard.model.ports.SoundPort port, IntConsumer rowConsumer) voidsetValueAt(Object value, int row, int column) voidupdatePortConfig(org.bidib.wizard.model.ports.SoundPort 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, setCollapsedMethods inherited from class org.bidib.wizard.client.common.model.SimplePortTableModel
addPortTableLayoutListener, fireLabelChanged, fireTestButtonPressed, setPortListener, setPortValuesProcessingMethods 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, setRowCountMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
COLUMN_LABEL
public static final int COLUMN_LABEL- See Also:
-
COLUMN_PULSE_TIME
public static final int COLUMN_PULSE_TIME- See Also:
-
COLUMN_PORT_IDENTIFIER
public static final int COLUMN_PORT_IDENTIFIER- See Also:
-
COLUMN_STATUS
public static final int COLUMN_STATUS- See Also:
-
COLUMN_TEST
public static final int COLUMN_TEST- See Also:
-
COLUMN_PORT_INSTANCE
public static final int COLUMN_PORT_INSTANCE- See Also:
-
-
Constructor Details
-
SoundPortTableModel
public SoundPortTableModel()
-
-
Method Details
-
getColumnPortInstance
public int getColumnPortInstance()- Specified by:
getColumnPortInstancein classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
getTestColumnIndex
- Overrides:
getTestColumnIndexin classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
initialize
protected void initialize()- Overrides:
initializein classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
addRow
public void addRow(org.bidib.wizard.model.ports.SoundPort port) - Overrides:
addRowin classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
isCellEditable
public boolean isCellEditable(int row, int column) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classDefaultTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classDefaultTableModel
-
notifyPortStatusChanged
public void notifyPortStatusChanged(org.bidib.wizard.model.ports.SoundPort port) - Specified by:
notifyPortStatusChangedin classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
notifyPortConfigChanged
public void notifyPortConfigChanged(org.bidib.wizard.model.ports.SoundPort port) - Specified by:
notifyPortConfigChangedin classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
notifyPortLabelChanged
public void notifyPortLabelChanged(org.bidib.wizard.model.ports.SoundPort port) - Specified by:
notifyPortLabelChangedin classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
refreshRow
- Specified by:
refreshRowin classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
updatePortConfig
public void updatePortConfig(org.bidib.wizard.model.ports.SoundPort 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.Port<? extends org.bidib.wizard.model.status.BidibStatus> port) - Overrides:
changePortTypein classSimplePortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
getRow
protected org.bidib.wizard.model.ports.SoundPort getRow(int rowIndex) - Specified by:
getRowin classSimpleHierarchicalPortTableModel<org.bidib.wizard.model.status.SoundPortStatus,org.bidib.wizard.model.ports.SoundPort, SoundPortModelListener>
-
fireTestButtonPressed
public void fireTestButtonPressed(org.bidib.wizard.model.ports.SoundPort port)
-