Hi Tatu,it seems setItemLabelGenerator only works on the "items"

Hi Tatu,

it seems setItemLabelGenerator only works on the "items" side but on the "values" side uses just simple toString().


TwinColSelect<STATUS.Subscription> subcriptions = new TwinColSelect<>();
...
subcriptions.setItemLabelGenerator(item -> item.subscriptionLabel(this::getTranslation));
...
Subscription.java
@Override
public String toString() {
    return subscriptionLabel(s -> s);
}

public String subscriptionLabel(Function<String, String> trans) {
if (isStatus()) {
return (trans.apply(“subscribe.status”) + " " + getLabel(trans));

} else {
    return (trans.apply("subscribe.event") + " " + getLabel(trans));
}

}

and the mixed screen on the attachment.

I can't reproduce this with the newest version. I added this to test.

https://github.com/TatuLund/TwinColSelect/commit/a5c3f22a7b174f86b298168fc2869cd98b28d13a