final WidgetCanvas widgetConvas = new WidgetCanvas(flowPanel);
contextMenu.addMouseOutHandler(new MouseOutHandler() {
public void onMouseOut(MouseOutEvent event) {
if (contextMenu.isVisible()) {
contextMenu.hide();
}
}
});
layout.setMembers(widgetConvas);
layout.draw();