Hello Gerrit, I'm facing a weird issue right now. I'm using mixin interfac

Hello Gerrit, I’m facing a weird issue right now.

I’m using mixin interfaces (implements HasTooltip) on Vaadin components. I would like to use the TooltipConfiguration class but in a little different way in order to handle content and placement at the same time. I created a new class which extends the previous one:

public class MyTooltipConfiguration extends TooltipConfiguration {
	public MyTooltipConfiguration(String content, TC_PLACEMENT placement) {
		super();
		
		setContent(content);
		setPlacement(placement);
}

and then:

HasTooltip aTooltipComponent = new MyComponent();
aTooltipComponent.setTooltip(new MyTooltipConfiguration("test", TC_PLACEMENT.LEFT));

but this code does only display empty tooltips and not placed on the left, always top. It looks like the tooltip is initialized with default values.

Do you have any ideas?

Thanks in advance :)

Paul

Hello Paul,

Your code should indeed work.
Im gonna look into this some time soon (https://gitlab.com/gsedlacz/tooltips4vaadin/-/issues/29).

Best Regards

Gerrit