com.esri.arcgis.framework
Interface IMenuItem

All Superinterfaces:
Serializable
All Known Subinterfaces:
IMenuItem2
All Known Implementing Classes:
IMenuItemProxy

public interface IMenuItem
extends Serializable

Provides access to extended notifications for commands on menus.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 void onClose()
          Called on commands after their parent menu is closed.
 void onPopup(ICommandBar pParentMenu)
          Called on commands just before their parent menu is displayed.
 

Method Detail

onPopup

void onPopup(ICommandBar pParentMenu)
             throws IOException,
                    AutomationException
Called on commands just before their parent menu is displayed.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
pParentMenu - A reference to a com.esri.arcgis.framework.ICommandBar (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onClose

void onClose()
             throws IOException,
                    AutomationException
Called on commands after their parent menu is closed.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.