Description:
Call the setDimmed method to show or hide an existing
menu item. By default, a menu item is shown when it is appended to the options
menu.
For more general information on constructing an options menu, see Using softkeys.
Syntax:
[void] MenuItem.setDimmed(Boolean flag)
Arguments:
flag:
true to hide the menu item, and false to
show the menu item.
Return value:
This method does not return a value.
Example code:
See the example code in the description of the MenuItem.onSelect property.