20 package net.sf.gridarta.gui.dialog.plugin.parameter.archetype;
22 import java.awt.Component;
23 import javax.swing.DefaultListCellRenderer;
24 import javax.swing.JList;
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
55 public Component
getListCellRendererComponent(@NotNull
final JList<?> list, @Nullable
final Object value,
final int index,
final boolean isSelected,
final boolean cellHasFocus) {
60 super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
65 if (archetype == null) {
72 setIcon(faceObjectProviders.getFace(archetype));
Base package of all Gridarta classes.
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
R getArchetype()
Returns the Archetype this GameObject is based on.
Provider for faces of GameObjects and Archetypes.
The face is the appearance of an object.
ArchComboBoxCellRenderer(@NotNull final FaceObjectProviders faceObjectProviders)
Creates a new instance.
static final long serialVersionUID
Component getListCellRendererComponent(@NotNull final JList<?> list, @Nullable final Object value, final int index, final boolean isSelected, final boolean cellHasFocus)