Class ShaderListCellRenderer

  • All Implemented Interfaces:
    javax.swing.ListCellRenderer<Shader>

    public class ShaderListCellRenderer
    extends java.lang.Object
    implements javax.swing.ListCellRenderer<Shader>
    ListCellRenderer suitable for a combo box containing Shaders.
    Since:
    3 Apr 2008
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      ShaderListCellRenderer​(javax.swing.JComboBox<Shader> comboBox)
      Constructs a renderer suitable for use with a combo box containing shaders.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Component getListCellRendererComponent​(javax.swing.JList<? extends Shader> list, Shader shader, int index, boolean isSel, boolean hasFocus)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShaderListCellRenderer

        public ShaderListCellRenderer​(javax.swing.JComboBox<Shader> comboBox)
        Constructs a renderer suitable for use with a combo box containing shaders. The renderer will listen to the supplied comboBox's properties in order to update its enabledness appropriately.
        Parameters:
        comboBox - combo box to contain renderer
    • Method Detail

      • getListCellRendererComponent

        public java.awt.Component getListCellRendererComponent​(javax.swing.JList<? extends Shader> list,
                                                               Shader shader,
                                                               int index,
                                                               boolean isSel,
                                                               boolean hasFocus)
        Specified by:
        getListCellRendererComponent in interface javax.swing.ListCellRenderer<Shader>