Hi
When using my custom cell renderer ListAction does not work
private class CheckableCellRenderer extends DefaultCellRenderer<String> {
public CheckableCellRenderer() {
super();
}
@Override
public Panel getView(String value, boolean selected, Panel existing) {
Panel panel = super.getView(value, selected, null);
Container container = new Container(new SpringGridLayout(Axis.Y, Axis.X, FillMode.Even, FillMode.First));
container.addChild(panel);
container.addChild(new Checkbox(""), 1);
return container;
}
}
here the command is never called when I select an item:
listBox.addCommands(ListBox.ListAction.Down, source -> {
System.out.println("list box action"); // Not called
});
I guess it is because of the Container somehow prevents action from being detected, but not sure how to fix it.