public class MenuItem extends Menu
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Forms.MenuItem
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System.Windows.Forms
|
static java.lang.String |
className
Qualified class name: System.Windows.Forms.MenuItem
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
MenuItem()
Initializes a new instance by invoking the .NET constructor.
|
MenuItem(MenuMerge mergeType,
int mergeOrder,
Shortcut shortcut,
java.lang.String text,
EventHandler onClick,
EventHandler onPopup,
EventHandler onSelect,
MenuItem[] items)
Initializes a new instance by invoking the .NET constructor.
|
MenuItem(java.lang.Object instance)
Internal constructor.
|
MenuItem(java.lang.String text)
Initializes a new instance by invoking the .NET constructor.
|
MenuItem(java.lang.String text,
EventHandler onClick)
Initializes a new instance by invoking the .NET constructor.
|
MenuItem(java.lang.String text,
EventHandler onClick,
Shortcut shortcut)
Initializes a new instance by invoking the .NET constructor.
|
MenuItem(java.lang.String text,
MenuItem[] items)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClick(EventHandler handler)
Invokes the .NET member addClick.
|
void |
addDrawItem(DrawItemEventHandler handler)
Invokes the .NET member addDrawItem.
|
void |
addMeasureItem(MeasureItemEventHandler handler)
Invokes the .NET member addMeasureItem.
|
void |
addPopup(EventHandler handler)
Invokes the .NET member addPopup.
|
void |
addSelect(EventHandler handler)
Invokes the .NET member addSelect.
|
static MenuItem |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into MenuItem, a cast assert is made to check if types are compatible. |
MenuItem |
CloneMenu()
Invokes the .NET member CloneMenu.
|
boolean |
getBarBreak()
Gets the value of the .NET property BarBreak.
|
boolean |
getBreak()
Gets the value of the .NET property Break.
|
boolean |
getChecked()
Gets the value of the .NET property Checked.
|
boolean |
getDefaultItem()
Gets the value of the .NET property DefaultItem.
|
boolean |
getEnabled()
Gets the value of the .NET property Enabled.
|
int |
getIndex()
Gets the value of the .NET property Index.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
boolean |
getMdiList()
Gets the value of the .NET property MdiList.
|
int |
getMergeOrder()
Gets the value of the .NET property MergeOrder.
|
MenuMerge |
getMergeType()
Gets the value of the .NET property MergeType.
|
char |
getMnemonic()
Gets the value of the .NET property Mnemonic.
|
boolean |
getOwnerDraw()
Gets the value of the .NET property OwnerDraw.
|
Menu |
getParent()
Gets the value of the .NET property Parent.
|
boolean |
getRadioCheck()
Gets the value of the .NET property RadioCheck.
|
Shortcut |
getShortcut()
Gets the value of the .NET property Shortcut.
|
boolean |
getShowShortcut()
Gets the value of the .NET property ShowShortcut.
|
java.lang.String |
getText()
Gets the value of the .NET property Text.
|
boolean |
getVisible()
Gets the value of the .NET property Visible.
|
MenuItem |
MergeMenu()
Invokes the .NET member MergeMenu.
|
void |
MergeMenu(MenuItem itemSrc)
Invokes the .NET member MergeMenu.
|
void |
PerformClick()
Invokes the .NET member PerformClick.
|
void |
PerformSelect()
Invokes the .NET member PerformSelect.
|
void |
removeClick(EventHandler handler)
Invokes the .NET member removeClick.
|
void |
removeDrawItem(DrawItemEventHandler handler)
Invokes the .NET member removeDrawItem.
|
void |
removeMeasureItem(MeasureItemEventHandler handler)
Invokes the .NET member removeMeasureItem.
|
void |
removePopup(EventHandler handler)
Invokes the .NET member removePopup.
|
void |
removeSelect(EventHandler handler)
Invokes the .NET member removeSelect.
|
void |
setBarBreak(boolean BarBreak)
Sets the value of the .NET property BarBreak.
|
void |
setBreak(boolean Break)
Sets the value of the .NET property Break.
|
void |
setChecked(boolean Checked)
Sets the value of the .NET property Checked.
|
void |
setDefaultItem(boolean DefaultItem)
Sets the value of the .NET property DefaultItem.
|
void |
setEnabled(boolean Enabled)
Sets the value of the .NET property Enabled.
|
void |
setIndex(int Index)
Sets the value of the .NET property Index.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setMdiList(boolean MdiList)
Sets the value of the .NET property MdiList.
|
void |
setMergeOrder(int MergeOrder)
Sets the value of the .NET property MergeOrder.
|
void |
setMergeType(MenuMerge MergeType)
Sets the value of the .NET property MergeType.
|
void |
setOwnerDraw(boolean OwnerDraw)
Sets the value of the .NET property OwnerDraw.
|
void |
setRadioCheck(boolean RadioCheck)
Sets the value of the .NET property RadioCheck.
|
void |
setShortcut(Shortcut Shortcut)
Sets the value of the .NET property Shortcut.
|
void |
setShowShortcut(boolean ShowShortcut)
Sets the value of the .NET property ShowShortcut.
|
void |
setText(java.lang.String Text)
Sets the value of the .NET property Text.
|
void |
setVisible(boolean Visible)
Sets the value of the .NET property Visible.
|
GetContextMenu, getIsParent, GetMainMenu, getMdiListItem, getName, getTag, MergeMenu, setName, setTagaddDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public MenuItem()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException
java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic MenuItem(MenuMerge mergeType, int mergeOrder, Shortcut shortcut, java.lang.String text, EventHandler onClick, EventHandler onPopup, EventHandler onSelect, MenuItem[] items) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException
mergeType - the argument of type MenuMergemergeOrder - the argument of type intshortcut - the argument of type Shortcuttext - the argument of type java.lang.StringonClick - the argument of type EventHandleronPopup - the argument of type EventHandleronSelect - the argument of type EventHandleritems - the argument of type MenuItem[]java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itpublic MenuItem(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic MenuItem(java.lang.String text)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException
text - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic MenuItem(java.lang.String text,
EventHandler onClick)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException
text - the argument of type java.lang.StringonClick - the argument of type EventHandlerjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic MenuItem(java.lang.String text,
EventHandler onClick,
Shortcut shortcut)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException
text - the argument of type java.lang.StringonClick - the argument of type EventHandlershortcut - the argument of type Shortcutjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic MenuItem(java.lang.String text,
MenuItem[] items)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException
text - the argument of type java.lang.Stringitems - the argument of type MenuItem[]java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void addClick(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addDrawItem(DrawItemEventHandler handler) throws java.lang.Throwable
handler - the argument of type DrawItemEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addMeasureItem(MeasureItemEventHandler handler) throws java.lang.Throwable
handler - the argument of type MeasureItemEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addPopup(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addSelect(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static MenuItem cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into MenuItem, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMenuItem instancejava.lang.Throwable - in case of error during cast operationpublic MenuItem CloneMenu() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getBarBreak()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getBreak()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getChecked()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getDefaultItem()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getEnabled()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getIndex()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Menupublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Menupublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Menunull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Menupublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Menupublic boolean getMdiList()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getMergeOrder()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic MenuMerge getMergeType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic char getMnemonic()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getOwnerDraw()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Menu getParent() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getRadioCheck()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Shortcut getShortcut() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getShowShortcut()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getText()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getVisible()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic MenuItem MergeMenu() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void MergeMenu(MenuItem itemSrc) throws java.lang.Throwable
itemSrc - the argument of type MenuItemjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PerformClick()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PerformSelect()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeClick(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeDrawItem(DrawItemEventHandler handler) throws java.lang.Throwable
handler - the argument of type DrawItemEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeMeasureItem(MeasureItemEventHandler handler) throws java.lang.Throwable
handler - the argument of type MeasureItemEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removePopup(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeSelect(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setBarBreak(boolean BarBreak)
throws java.lang.Throwable
BarBreak - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setBreak(boolean Break)
throws java.lang.Throwable
Break - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setChecked(boolean Checked)
throws java.lang.Throwable
Checked - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDefaultItem(boolean DefaultItem)
throws java.lang.Throwable
DefaultItem - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setEnabled(boolean Enabled)
throws java.lang.Throwable
Enabled - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIndex(int Index)
throws java.lang.Throwable
Index - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Menuinstance - the new underlying objectpublic void setMdiList(boolean MdiList)
throws java.lang.Throwable
MdiList - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setMergeOrder(int MergeOrder)
throws java.lang.Throwable
MergeOrder - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setMergeType(MenuMerge MergeType) throws java.lang.Throwable
MergeType - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setOwnerDraw(boolean OwnerDraw)
throws java.lang.Throwable
OwnerDraw - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setRadioCheck(boolean RadioCheck)
throws java.lang.Throwable
RadioCheck - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setShortcut(Shortcut Shortcut) throws java.lang.Throwable
Shortcut - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setShowShortcut(boolean ShowShortcut)
throws java.lang.Throwable
ShowShortcut - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setText(java.lang.String Text)
throws java.lang.Throwable
Text - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setVisible(boolean Visible)
throws java.lang.Throwable
Visible - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR