Hi,
I have following code:
@Install(to = "customersTable.name", subject = "columnGenerator")
private Component customersTableNameColumnGenerator(Customer customer) {
Label<String> lbl = uiComponents.create(Label.class);
lbl.setHtmlEnabled(true);
String sValue = "<div style=\"font-size:10px;text-align: left;line-height: 110%;\"><div >M1: merkmal1-1</div></div><div style=\"font-size:10px;text-align: left;line-height: 110%;\"><div >M2: merkmal2-2</div></div><div style=\"font-size:10px;text-align: left;line-height: 110%;\"><div >M3: merkmal3-2</div></div><div style=\"font-size:10px;text-align: left;line-height: 110%;\"><div >M5: merkmal5-1</div></div>";
lbl.setValue(sValue);
return lb;
}
It works fine in GroupTable, but TreeTable does not fire left mouse event. Right mouse event works.
A Workaround with CssLayout is working, but not really the final solution.
CssLayout layout = uiComponents.create(CssLayout.NAME);
layout.addLayoutClickListener(layoutClickEvent -> {
customersTable.setSelected(customer);
});
....
....
layout.add(lbl);
return layout;
Any Ideas?
Regards Manfred