Class GtkListCellRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer<Object>, UIResource, SwingConstants

public class GtkListCellRenderer extends DefaultListCellRenderer implements UIResource
Description of the Class
Author:
fred
See Also:
  • Constructor Details

    • GtkListCellRenderer

      public GtkListCellRenderer(DefaultButton itemSelected, DefaultButton itemUnselected)
      Constructor for the GtkListCellRenderer object
  • Method Details

    • getListCellRendererComponent

      public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
      Gets the ListCellRendererComponent attribute of the GtkListCellRenderer object
      Specified by:
      getListCellRendererComponent in interface ListCellRenderer<Object>
      Overrides:
      getListCellRendererComponent in class DefaultListCellRenderer
      Parameters:
      list - Description of Parameter
      value - Description of Parameter
      index - Description of Parameter
      isSelected - Description of Parameter
      cellHasFocus - Description of Parameter
      Returns:
      The ListCellRendererComponent value
    • paintComponent

      protected void paintComponent(Graphics g)
      Description of the Method
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g - Description of Parameter