|Hide/Show MenuItems in a Menu [message #530265]
||Thu, 29 April 2010 03:16
| Missing name Mising name
Registered: February 2010
Is there a way to hide/show MenuItems inside a Menu?|
Neither Menu provides something like menu.setVisible (int index_of_menu_item) nor MenuItem provides anything like menuitem.setVisible (boolean)
Thus, for menus whose contents change depending on the context, the code for creating menu is repeated over and over again (during each pop-up of the menu) which involves adding listeners for menu selection too.
This is quite inefficient I guess.
Simple hide/show mechanism will enable create-once-use-forever approach which will be very efficient.
Powered by FUDForum
. Page generated in 0.01765 seconds