|
|
@ -376,14 +376,14 @@ public abstract class JListControlPane extends JControlPane implements ListContr |
|
|
|
Nameable nameable = element.wrapper; |
|
|
|
Nameable nameable = element.wrapper; |
|
|
|
this.textLabel.setText(nameable.getName()); |
|
|
|
this.textLabel.setText(nameable.getName()); |
|
|
|
boolean iconSet = false; |
|
|
|
boolean iconSet = false; |
|
|
|
|
|
|
|
if(isSelected) { |
|
|
|
|
|
|
|
this.textLabel.setBackground(selectedBgColor); |
|
|
|
|
|
|
|
this.textLabel.setForeground(Color.WHITE); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.textLabel.setBackground(Color.WHITE); |
|
|
|
|
|
|
|
this.textLabel.setForeground(Color.BLACK); |
|
|
|
|
|
|
|
} |
|
|
|
for (NameableCreator creator : JListControlPane.this.creators()) { |
|
|
|
for (NameableCreator creator : JListControlPane.this.creators()) { |
|
|
|
if(isSelected) { |
|
|
|
|
|
|
|
this.textLabel.setBackground(selectedBgColor); |
|
|
|
|
|
|
|
this.textLabel.setForeground(Color.WHITE); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.textLabel.setBackground(Color.WHITE); |
|
|
|
|
|
|
|
this.textLabel.setForeground(Color.BLACK); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (creator.menuIcon() != null && creator.acceptObject2Populate(nameable) != null) { |
|
|
|
if (creator.menuIcon() != null && creator.acceptObject2Populate(nameable) != null) { |
|
|
|
this.iconLabel.setIcon(creator.menuIcon()); |
|
|
|
this.iconLabel.setIcon(creator.menuIcon()); |
|
|
|
this.setToolTipText(creator.createTooltip()); |
|
|
|
this.setToolTipText(creator.createTooltip()); |
|
|
|