Menu Item: visible/invisible hook

Hi there,

How can I place a hook to a menu item and set invisible after a click?

Thanks Tobi

in addition, talking about Vaadin 7.3 Valo Theme. I can set the MenuItem Object setChecked(true) and false, the value will be saved but nothing appear in the menu???