lundi 19 décembre 2022

Is there a way to get a checkbox component out of a checkboxgroup component in Vaadin 23.3.0?

I need a single checkbox component to add a tool-tip on it. However, the component is of a CheckboxGroup type. Is there a way to get a Checkbox component out of a CheckboxGroup component?

I have tried to look up different type of methods on the CheckbocGroup class but I can get the Items back which are a Enum type. I need a class that is a child class of the Vaadin Component class. I was expecting something like:

CheckboxGroup<Enum> checkboxGroup = new CheckboxGroup();
checkboxGroup.setItems(Enum.values())

Checkbox checkbox = checkboxGroup.getCheckboxOfType(Enum.Type);
checkbox.setTooltipText("TEST");



Aucun commentaire:

Enregistrer un commentaire