MenuItem function ( String arg0 , final Command arg1 ) { MenuItem loc0 = new MenuItem ( arg0 , new Command ( ) { @ Override public void execute ( ) { hide ( ) ; arg1 . execute ( ) ; } } ) ; loc0 . setStylePrimaryName ( "srini_string" ) ; menuBar . addItem ( loc0 ) ; return loc0 ; }
adds a menu item to the context menu . concode_field_sep MenuBar menuBar concode_elem_sep PopupPanel popupPanel concode_field_sep void hide concode_elem_sep void addSeparator concode_elem_sep void show concode_elem_sep void setPopupPositionAndShow concode_elem_sep void setPopupPosition