This demo uses the tooltip library to build a simple context menu. Right-click on some group to see the menu.
onGroupClickto get notification of clicks happening over the groups. The listener inspects the
secondaryproperty of the event to react only on right-button clicks.
onGroupHoverto get information about the group being hovered over.
See also the per-group tooltips example.