Package uk.ac.starlink.ttools.gui
Class ShaderListCellRenderer
- java.lang.Object
-
- uk.ac.starlink.ttools.gui.ShaderListCellRenderer
-
-
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)
-
-
-
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 suppliedcomboBox
's properties in order to update its enabledness appropriately.- Parameters:
comboBox
- combo box to contain renderer
-
-