Class PortComboBoxWithButtonEditor<E extends org.bidib.wizard.model.status.BidibStatus>

java.lang.Object
javax.swing.AbstractCellEditor
org.bidib.wizard.mvc.main.view.table.PortComboBoxWithButtonEditor<E>
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class PortComboBoxWithButtonEditor<E extends org.bidib.wizard.model.status.BidibStatus> extends AbstractCellEditor implements TableCellEditor
See Also:
  • Field Details

    • comboBox

      protected final JComboBox<E extends org.bidib.wizard.model.status.BidibStatus> comboBox
  • Constructor Details

    • PortComboBoxWithButtonEditor

      public PortComboBoxWithButtonEditor(E[] items, String buttonText, Class<?> resourceClazz)
    • PortComboBoxWithButtonEditor

      public PortComboBoxWithButtonEditor(E[] items, String buttonText, String resourceClazz)
  • Method Details

    • addButtonListener

      public void addButtonListener(ButtonListener l)
    • getCellEditorValue

      public Object getCellEditorValue()
      Specified by:
      getCellEditorValue in interface CellEditor
    • getTableCellEditorComponent

      public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
      Specified by:
      getTableCellEditorComponent in interface TableCellEditor
    • setSelectedValue

      protected void setSelectedValue(org.bidib.wizard.model.ports.Port<? extends org.bidib.wizard.model.status.BidibStatus> port)
    • setSelectedValue

      protected void setSelectedValue(E status)