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