Drag and Drop - TreeTable

Hello. I want to implement drag and drop in my TreeTable. The logic is similar than in the
book example
. However, I don’t want to accept drops of a leaf into another node. I only need to reorder nodes in the table and leaves in the same node. How should my getAcceptCriterion() method be?

Thank you.

Any idea?