Class JosmListCellRenderer<E>
- java.lang.Object
-
- org.openstreetmap.josm.gui.widgets.JosmListCellRenderer<E>
-
- Type Parameters:
E
- The type of the ListCellRenderer
- All Implemented Interfaces:
javax.swing.ListCellRenderer<E>
- Direct Known Subclasses:
ComboMultiSelect.ComboMultiSelectListCellRenderer
,TagEditHelper.TEHListCellRenderer
public class JosmListCellRenderer<E> extends java.lang.Object implements javax.swing.ListCellRenderer<E>
A convenience list cell renderer to override.- Since:
- 18221
-
-
Constructor Summary
Constructors Constructor Description JosmListCellRenderer(java.awt.Component component, javax.swing.ListCellRenderer<? super E> renderer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Component
getListCellRendererComponent(javax.swing.JList<? extends E> list, E value, int index, boolean isSelected, boolean cellHasFocus)
-
-
-
Constructor Detail
-
JosmListCellRenderer
public JosmListCellRenderer(java.awt.Component component, javax.swing.ListCellRenderer<? super E> renderer)
Constructor.- Parameters:
component
- the componentrenderer
- The inner renderer
-
-
Method Detail
-
getListCellRendererComponent
public java.awt.Component getListCellRendererComponent(javax.swing.JList<? extends E> list, E value, int index, boolean isSelected, boolean cellHasFocus)
- Specified by:
getListCellRendererComponent
in interfacejavax.swing.ListCellRenderer<E>
-
-