src/macosx/native/sun/awt/CMenu.h

Print this page




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #import "CMenuItem.h"
  27 
  28 extern NSString *JAVA_MENU_NAME;
  29 
  30 @interface CMenu : CMenuItem {
  31     NSMenu *fMenu;
  32 }
  33 
  34 // Initializers
  35 - (id)initWithPeer:(jobject)peer;
  36 
  37 - (void)setNativeMenuTitle_OnAppKitThread:(NSString *)title;
  38 - (void)addNativeItem_OnAppKitThread:(CMenuItem *)itemModified;
  39 - (void)deleteNativeJavaItem_OnAppKitThread:(NSNumber *)number;
  40 - (void)setNativeEnabled_OnAppKitThread:(NSNumber *)boolNumber;
  41 
  42 // Actions
  43 - (void)addJavaSubmenu:(CMenu *)submenu;
  44 - (void)addJavaMenuItem:(CMenuItem *)newItem;
  45 - (void)setJavaMenuTitle:(NSString *)title;
  46 - (void)deleteJavaItem:(jint)index;
  47 - (void)addNSMenuItemToMenu:(NSMenu *)inMenu;
  48 - (void)addSeparator;
  49 
  50 // Accessors
  51 - (NSMenu *)menu;
  52 @end


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #import "CMenuItem.h"
  27 
  28 extern NSString *JAVA_MENU_NAME;
  29 
  30 @interface CMenu : CMenuItem {
  31     NSMenu *fMenu;
  32 }
  33 
  34 // Initializers
  35 - (id)initWithPeer:(jobject)peer;
  36 
  37 - (void)setNativeMenuTitle_OnAppKitThread:(NSString *)title;

  38 - (void)deleteNativeJavaItem_OnAppKitThread:(NSNumber *)number;
  39 - (void)setNativeEnabled_OnAppKitThread:(NSNumber *)boolNumber;
  40 
  41 // Actions


  42 - (void)setJavaMenuTitle:(NSString *)title;
  43 - (void)deleteJavaItem:(jint)index;
  44 - (void)addNSMenuItemToMenu:(NSMenu *)inMenu;
  45 - (void)addSeparator;
  46 
  47 // Accessors
  48 - (NSMenu *)menu;
  49 @end