ContextMenu not only for single component

Hi there,

I have successfully implemented a ContextMenu by means of the Vaaddin ContextMenu addon and set it to be raised by the component where the user right-clicks, by assigning that component with the method:


This works fine and must say it is greatly and very carefully implemented. I have solely the following question: I would like the menu to be raised not only as a result of clicking upon the desired component but also upon the components contained inside that component (other containers, labels, etc…). From the available API there seems not to be a straight way for attaining this.

I could try to dig in the widget and modify it but before approaching that (besides don’t know how easy will it be to succeed) has anybody an idea of an easy way for achieving it??

Many thanks.


Carlos Conti.