Table disable Item deselection

If an item is selected, there is a blue background. After the next click, the item is deselectet and there is only this pointed boarder around the item.
Is there a way to disable the deselection of a table item?

Or must this be handeled with css?

Did you already try table.setNullSelectionAllowed(false) ?

ahh thank you… i think i skipped this function.