Class FWFormOptionListCellRenderer

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
net.simplace.pipe.formcomponents.choice.FWFormOptionListCellRenderer
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer, SwingConstants

public class FWFormOptionListCellRenderer extends JLabel implements ListCellRenderer
List cell renderer for FWFormOptions: shows image and text of the option with the list's selection colours.
See Also:
  • Constructor Details

    • FWFormOptionListCellRenderer

      public FWFormOptionListCellRenderer()
  • Method Details

    • getListCellRendererComponent

      public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
      Specified by:
      getListCellRendererComponent in interface ListCellRenderer
      Parameters:
      list - the list
      value - the cell value, must be a FWFormOption
      index - the cell index
      isSelected - true if the cell is selected
      cellHasFocus - true if the cell has the focus
      Returns:
      this label, showing image and text of the option