Is there a way to bind a MenuBar to a HierarchicalContainer?

Hi
Is there a way to bind a MenuBar to a HierarchicalContainer?

Samples show how to do that with a Tree:

Tree tree = new Tree("My Tree", myHierarchicalContainer);

Thanks!

A MenuBar can not be bound to a Container. It’s not a component to represent data.
The only way is to create the MenuItems from your data by yourself.

(Ok, thanks)