Class AccessoryTableModel

All Implemented Interfaces:
com.jidesoft.grid.ContextSensitiveTableModel, com.jidesoft.grid.StyleModel, Serializable, TableModel, ButtonListener

public class AccessoryTableModel extends DefaultTableModel implements ButtonListener, com.jidesoft.grid.StyleModel, com.jidesoft.grid.ContextSensitiveTableModel
This is the table model for the accessory aspects table.
See Also:
  • Field Details

  • Constructor Details

    • AccessoryTableModel

      public AccessoryTableModel(MainModel model)
  • Method Details

    • addPortListener

      public void addPortListener(AccessoryPortListener l)
    • setSelectedAccessory

      public void setSelectedAccessory(org.bidib.wizard.api.model.Accessory selectedAccessory)
    • getSelectedAccessory

      public org.bidib.wizard.api.model.Accessory getSelectedAccessory()
    • addRow

      public void addRow(org.bidib.wizard.api.model.AccessoryAspect accessoryAspect)
    • getAccessoryAspectInstance

      public org.bidib.wizard.api.model.AccessoryAspect getAccessoryAspectInstance(int row)
      Get the row instance.
      Parameters:
      row - the row
      Returns:
      the row instance
    • getColumnClass

      public Class<?> getColumnClass(int columnIndex)
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
    • isCellEditable

      public boolean isCellEditable(int row, int column)
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class DefaultTableModel
    • setValueAt

      public void setValueAt(Object value, int row, int column)
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class DefaultTableModel
    • getValueAt

      public Object getValueAt(int row, int column)
      Specified by:
      getValueAt in interface TableModel
      Overrides:
      getValueAt in class DefaultTableModel
    • buttonPressed

      public void buttonPressed(int row, int column, Object value)
      Specified by:
      buttonPressed in interface ButtonListener
    • getCellStyleAt

      public com.jidesoft.grid.CellStyle getCellStyleAt(int rowIndex, int columnIndex)
      Specified by:
      getCellStyleAt in interface com.jidesoft.grid.StyleModel
    • isCellStyleOn

      public boolean isCellStyleOn()
      Specified by:
      isCellStyleOn in interface com.jidesoft.grid.StyleModel
    • getEditorContextAt

      public com.jidesoft.grid.EditorContext getEditorContextAt(int row, int column)
      Specified by:
      getEditorContextAt in interface com.jidesoft.grid.ContextSensitiveTableModel
    • getCellClassAt

      public Class<?> getCellClassAt(int row, int column)
      Specified by:
      getCellClassAt in interface com.jidesoft.grid.ContextSensitiveTableModel
    • getConverterContextAt

      public com.jidesoft.converter.ConverterContext getConverterContextAt(int row, int column)
      Specified by:
      getConverterContextAt in interface com.jidesoft.grid.ContextSensitiveTableModel