Package com.apple.cocoa.application

Source Code of com.apple.cocoa.application.NSMenuView

/*     */ package com.apple.cocoa.application;
/*     */
/*     */ import com.apple.cocoa.foundation.NSNotification;
/*     */ import com.apple.cocoa.foundation.NSPoint;
/*     */ import com.apple.cocoa.foundation.NSRect;
/*     */ import com.apple.cocoa.foundation.NSRuntime;
/*     */
/*     */ public class NSMenuView extends NSView
/*     */ {
/*     */   public static native float menuBarHeight();
/*     */
/*     */   private native void initAsTearOff();
/*     */
/*     */   public native void setMenu(NSMenu paramNSMenu);
/*     */
/*     */   public native NSMenu menu();
/*     */
/*     */   public native void itemChanged(NSNotification paramNSNotification);
/*     */
/*     */   public native void itemAdded(NSNotification paramNSNotification);
/*     */
/*     */   public native void itemRemoved(NSNotification paramNSNotification);
/*     */
/*     */   public native void update();
/*     */
/*     */   public native void setHorizontal(boolean paramBoolean);
/*     */
/*     */   public native boolean isHorizontal();
/*     */
/*     */   public native void setFont(NSFont paramNSFont);
/*     */
/*     */   public native NSFont font();
/*     */
/*     */   public native NSRect innerRect();
/*     */
/*     */   public native NSRect rectOfItemAtIndex(int paramInt);
/*     */
/*     */   public native int indexOfItemAtPoint(NSPoint paramNSPoint);
/*     */
/*     */   public native void setNeedsDisplayForItemAtIndex(int paramInt);
/*     */
/*     */   public native void setHighlightedItemIndex(int paramInt);
/*     */
/*     */   public native int highlightedItemIndex();
/*     */
/*     */   public native float stateImageOffset();
/*     */
/*     */   public native float stateImageWidth();
/*     */
/*     */   public native float imageAndTitleOffset();
/*     */
/*     */   public native float imageAndTitleWidth();
/*     */
/*     */   public native float keyEquivalentOffset();
/*     */
/*     */   public native float keyEquivalentWidth();
/*     */
/*     */   public native void setMenuItemCellForItemAtIndex(NSMenuItemCell paramNSMenuItemCell, int paramInt);
/*     */
/*     */   public native NSMenuItemCell menuItemCellForItemAtIndex(int paramInt);
/*     */
/*     */   public native NSMenuView attachedMenuView();
/*     */
/*     */   public native void setNeedsSizing(boolean paramBoolean);
/*     */
/*     */   public native boolean needsSizing();
/*     */
/*     */   public native void sizeToFit();
/*     */
/*     */   public native NSMenu attachedMenu();
/*     */
/*     */   public native boolean isAttached();
/*     */
/*     */   public native boolean isTornOff();
/*     */
/*     */   public native NSPoint locationForSubmenu(NSMenu paramNSMenu);
/*     */
/*     */   public native void setWindowFrameForAttachingToRect(NSRect paramNSRect, NSScreen paramNSScreen, int paramInt1, int paramInt2);
/*     */
/*     */   public native void detachSubmenu();
/*     */
/*     */   public native void attachSubmenuForItemAtIndex(int paramInt);
/*     */
/*     */   public native void performActionWithHighlightingForItemAtIndex(int paramInt);
/*     */
/*     */   public native boolean trackWithEvent(NSEvent paramNSEvent);
/*     */
/*     */   public native float horizontalEdgePadding();
/*     */
/*     */   public native void setHorizontalEdgePadding(float paramFloat);
/*     */
/*     */   private native void initWithFrame(NSRect paramNSRect);
/*     */
/*     */   private void init()
/*     */   {
/* 465 */     initNative();
/*     */   }
/*     */
/*     */   private native void initNative();
/*     */
/*     */   public NSMenuView(boolean paramBoolean)
/*     */   {
/* 473 */     super(false, 0);
/* 474 */     if (paramBoolean)
/* 475 */       initAsTearOff();
/*     */     else
/* 477 */       initWithFrame(new NSRect(0.0F, 0.0F, 10.0F, 10.0F));
/*     */   }
/*     */
/*     */   protected NSMenuView(boolean paramBoolean, int paramInt)
/*     */   {
/* 494 */     super(paramBoolean, paramInt);
/*     */   }
/*     */
/*     */   public NSMenuView()
/*     */   {
/*     */   }
/*     */
/*     */   private NSMenuView(NSRect paramNSRect)
/*     */   {
/* 518 */     super(false, 0);
/* 519 */     initWithFrame(paramNSRect);
/*     */   }
/*     */
/*     */   static
/*     */   {
/*  21 */     NSRuntime.loadLibrary("ObjCJava");
/*  22 */     NSRuntime.loadLibrary("FoundationJava");
/*  23 */     NSRuntime.loadLibrary("AppKitJava");
/*     */   }
/*     */ }

/* Location:           Z:\System\Library\Java\
* Qualified Name:     com.apple.cocoa.application.NSMenuView
* JD-Core Version:    0.6.2
*/
TOP

Related Classes of com.apple.cocoa.application.NSMenuView

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.