Class ComboBoxRenderer<E>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox<E>
org.bidib.wizard.mvc.main.view.table.ComboBoxRenderer<E>
All Implemented Interfaces:
ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, ListDataListener, TableCellRenderer
Direct Known Subclasses:
ConfigurablePortComboBoxRenderer, PortComboBoxRenderer

public class ComboBoxRenderer<E> extends JComboBox<E> implements TableCellRenderer
See Also:
  • Constructor Details

    • ComboBoxRenderer

      public ComboBoxRenderer(E[] items)
  • Method Details

    • createComboBoxRenderer

      public static <E extends org.bidib.wizard.model.status.BidibStatus> ComboBoxRenderer<E> createComboBoxRenderer(E[] items, String resourceClazz)
    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
    • setForeground

      public void setForeground(Color c)
      Overrides JComponent.setForeground to assign the unselected-foreground color to the specified color.
      Overrides:
      setForeground in class JComponent
      Parameters:
      c - set the foreground color to this value
    • setBackground

      public void setBackground(Color c)
      Overrides JComponent.setBackground to assign the unselected-background color to the specified color.
      Overrides:
      setBackground in class JComponent
      Parameters:
      c - set the background color to this value
    • updateUI

      public void updateUI()
      Notification from the UIManager that the look and feel [L&F] has changed. Replaces the current UI object with the latest version from the UIManager.
      Overrides:
      updateUI in class JComboBox<E>
      See Also: