All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.MenuItemCell

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.Cell
                   |
                   +----com.apple.alpha.app.ActionCell
                           |
                           +----com.apple.alpha.app.ButtonCell
                                   |
                                   +----com.apple.alpha.app.MenuItemCell

public class MenuItemCell
extends ButtonCell
This class wraps the Objective-C class NSMenuItemCell.


Constructor Index

 o MenuItemCell()
This default constructor is equivalent to Objective-C's [[NSMenuItemCell alloc] init].
 o MenuItemCell(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o MenuItemCell(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Method Index

 o calcSize()
A wrapper for the - calcSize Objective-C instance method.
 o drawBorderAndBackgroundWithFrame(Rect, View)
A wrapper for the - drawBorderAndBackgroundWithFrame:inView: Objective-C instance method.
 o drawImageWithFrame(Rect, View)
A wrapper for the - drawImageWithFrame:inView: Objective-C instance method.
 o drawKeyEquivalentWithFrame(Rect, View)
A wrapper for the - drawKeyEquivalentWithFrame:inView: Objective-C instance method.
 o drawSeparatorItemWithFrame(Rect, View)
A wrapper for the - drawSeparatorItemWithFrame:inView: Objective-C instance method.
 o drawStateImageWithFrame(Rect, View)
A wrapper for the - drawStateImageWithFrame:inView: Objective-C instance method.
 o drawTitleWithFrame(Rect, View)
A wrapper for the - drawTitleWithFrame:inView: Objective-C instance method.
 o imageRectForBounds(Rect)
A wrapper for the - imageRectForBounds: Objective-C instance method.
 o imageWidth()
A wrapper for the - imageWidth Objective-C instance method.
 o isHighlighted()
A wrapper for the - isHighlighted Objective-C instance method.
 o keyEquivalentRectForBounds(Rect)
A wrapper for the - keyEquivalentRectForBounds: Objective-C instance method.
 o keyEquivalentWidth()
A wrapper for the - keyEquivalentWidth Objective-C instance method.
 o menuItem()
A wrapper for the - menuItem Objective-C instance method.
 o needsSizing()
A wrapper for the - needsSizing Objective-C instance method.
 o setHighlighted(boolean)
A wrapper for the - setHighlighted: Objective-C instance method.
 o setMenuItem(MenuElement)
A wrapper for the - setMenuItem: Objective-C instance method.
 o setNeedsSizing(boolean)
A wrapper for the - setNeedsSizing: Objective-C instance method.
 o stateImageRectForBounds(Rect)
A wrapper for the - stateImageRectForBounds: Objective-C instance method.
 o stateImageWidth()
A wrapper for the - stateImageWidth Objective-C instance method.
 o titleRectForBounds(Rect)
A wrapper for the - titleRectForBounds: Objective-C instance method.
 o titleWidth()
A wrapper for the - titleWidth Objective-C instance method.

Constructors

 o MenuItemCell
 protected MenuItemCell(boolean shouldAllocate,
                        int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o MenuItemCell
 public MenuItemCell()
This default constructor is equivalent to Objective-C's [[NSMenuItemCell alloc] init].

 o MenuItemCell
 public MenuItemCell(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Methods

 o setMenuItem
 public native void setMenuItem(MenuElement item)
A wrapper for the - setMenuItem: Objective-C instance method.

 o menuItem
 public native MenuElement menuItem()
A wrapper for the - menuItem Objective-C instance method.

 o setHighlighted
 public native void setHighlighted(boolean flag)
A wrapper for the - setHighlighted: Objective-C instance method.

 o isHighlighted
 public native boolean isHighlighted()
A wrapper for the - isHighlighted Objective-C instance method.

Overrides:
isHighlighted in class Cell
 o setNeedsSizing
 public native void setNeedsSizing(boolean flag)
A wrapper for the - setNeedsSizing: Objective-C instance method.

 o needsSizing
 public native boolean needsSizing()
A wrapper for the - needsSizing Objective-C instance method.

 o calcSize
 public native void calcSize()
A wrapper for the - calcSize Objective-C instance method.

 o stateImageWidth
 public native float stateImageWidth()
A wrapper for the - stateImageWidth Objective-C instance method.

 o imageWidth
 public native float imageWidth()
A wrapper for the - imageWidth Objective-C instance method.

 o titleWidth
 public native float titleWidth()
A wrapper for the - titleWidth Objective-C instance method.

 o keyEquivalentWidth
 public native float keyEquivalentWidth()
A wrapper for the - keyEquivalentWidth Objective-C instance method.

 o stateImageRectForBounds
 public native Rect stateImageRectForBounds(Rect cellFrame)
A wrapper for the - stateImageRectForBounds: Objective-C instance method.

 o imageRectForBounds
 public native Rect imageRectForBounds(Rect cellFrame)
A wrapper for the - imageRectForBounds: Objective-C instance method.

Overrides:
imageRectForBounds in class Cell
 o titleRectForBounds
 public native Rect titleRectForBounds(Rect cellFrame)
A wrapper for the - titleRectForBounds: Objective-C instance method.

Overrides:
titleRectForBounds in class Cell
 o keyEquivalentRectForBounds
 public native Rect keyEquivalentRectForBounds(Rect cellFrame)
A wrapper for the - keyEquivalentRectForBounds: Objective-C instance method.

 o drawSeparatorItemWithFrame
 public native void drawSeparatorItemWithFrame(Rect cellFrame,
                                               View controlView)
A wrapper for the - drawSeparatorItemWithFrame:inView: Objective-C instance method.

 o drawStateImageWithFrame
 public native void drawStateImageWithFrame(Rect cellFrame,
                                            View controlView)
A wrapper for the - drawStateImageWithFrame:inView: Objective-C instance method.

 o drawImageWithFrame
 public native void drawImageWithFrame(Rect cellFrame,
                                       View controlView)
A wrapper for the - drawImageWithFrame:inView: Objective-C instance method.

 o drawTitleWithFrame
 public native void drawTitleWithFrame(Rect cellFrame,
                                       View controlView)
A wrapper for the - drawTitleWithFrame:inView: Objective-C instance method.

 o drawKeyEquivalentWithFrame
 public native void drawKeyEquivalentWithFrame(Rect cellFrame,
                                               View controlView)
A wrapper for the - drawKeyEquivalentWithFrame:inView: Objective-C instance method.

 o drawBorderAndBackgroundWithFrame
 public native void drawBorderAndBackgroundWithFrame(Rect cellFrame,
                                                     View controlView)
A wrapper for the - drawBorderAndBackgroundWithFrame:inView: Objective-C instance method.


All Packages  Class Hierarchy  This Package  Previous  Next  Index