public void | selected(MenuItem menu, java.lang.Object target)Menu item has been selected by the user.
Note - this method will be called when a "deselection" takes place, like
if the MenuItem has STYLE_CHECK or STYLE_RADIO (where a
previously selected item has been deselected because another item has been
selected instead).
Therefore, you should check the state of the MenuItem, rather than assuming
that it has been "activated".
|