contextMenu and tree component

hi

I want to be able to attach contextMenu items to nodes on a tree component, so that when the user right clicks on a node, a custom menu appears and clicking on a menu item returns the id of the selected node to an event handler attached to the menu item.

is this possible?