public class MenuItem extends Menu
.NET documentation at https://docs.microsoft.com/en-us/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=4.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() |
MenuItem(MenuMerge mergeType,
int mergeOrder,
Shortcut shortcut,
java.lang.String text,
EventHandler onClick,
EventHandler onPopup,
EventHandler onSelect,
MenuItem[] items) |
MenuItem(java.lang.Object instance)
Internal constructor.
|
MenuItem(java.lang.String text) |
MenuItem(java.lang.String text,
EventHandler onClick) |
MenuItem(java.lang.String text,
EventHandler onClick,
Shortcut shortcut) |
MenuItem(java.lang.String text,
MenuItem[] items) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClick(EventHandler handler) |
void |
addDrawItem(DrawItemEventHandler handler) |
void |
addMeasureItem(MeasureItemEventHandler handler) |
void |
addPopup(EventHandler handler) |
void |
addSelect(EventHandler handler) |
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() |
boolean |
getBarBreak() |
boolean |
getBreak() |
boolean |
getChecked() |
boolean |
getDefaultItem() |
boolean |
getEnabled() |
int |
getIndex() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
boolean |
getMdiList() |
int |
getMergeOrder() |
MenuMerge |
getMergeType() |
char |
getMnemonic() |
boolean |
getOwnerDraw() |
Menu |
getParent() |
boolean |
getRadioCheck() |
Shortcut |
getShortcut() |
boolean |
getShowShortcut() |
java.lang.String |
getText() |
boolean |
getVisible() |
MenuItem |
MergeMenu() |
void |
MergeMenu(MenuItem itemSrc) |
void |
PerformClick() |
void |
PerformSelect() |
void |
removeClick(EventHandler handler) |
void |
removeDrawItem(DrawItemEventHandler handler) |
void |
removeMeasureItem(MeasureItemEventHandler handler) |
void |
removePopup(EventHandler handler) |
void |
removeSelect(EventHandler handler) |
void |
setBarBreak(boolean BarBreak) |
void |
setBreak(boolean Break) |
void |
setChecked(boolean Checked) |
void |
setDefaultItem(boolean DefaultItem) |
void |
setEnabled(boolean Enabled) |
void |
setIndex(int Index) |
void |
setJCOInstance(JCObject instance) |
void |
setMdiList(boolean MdiList) |
void |
setMergeOrder(int MergeOrder) |
void |
setMergeType(MenuMerge MergeType) |
void |
setOwnerDraw(boolean OwnerDraw) |
void |
setRadioCheck(boolean RadioCheck) |
void |
setShortcut(Shortcut Shortcut) |
void |
setShowShortcut(boolean ShowShortcut) |
void |
setText(java.lang.String Text) |
void |
setVisible(boolean Visible) |
GetContextMenu, getIsParent, GetMainMenu, getMdiListItem, getName, getTag, MergeMenu, setName, setTagaddDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteCreateObjRef, GetLifetimeService, 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,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
public MenuItem(MenuMerge mergeType, int mergeOrder, Shortcut shortcut, java.lang.String text, EventHandler onClick, EventHandler onPopup, EventHandler onSelect, MenuItem[] items) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
public MenuItem(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic MenuItem(java.lang.String text)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
public MenuItem(java.lang.String text,
EventHandler onClick)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
public MenuItem(java.lang.String text,
EventHandler onClick,
Shortcut shortcut)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
public MenuItem(java.lang.String text,
MenuItem[] items)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
public void addClick(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addDrawItem(DrawItemEventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addMeasureItem(MeasureItemEventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addPopup(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addSelect(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic 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, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException
public boolean getBarBreak()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getBreak()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getChecked()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getDefaultItem()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getEnabled()
throws java.lang.Throwable
java.lang.Throwablepublic int getIndex()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MenuString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MenuString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MenuObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MenuString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class MenuJCType representing the CLR Type of the instantiated Classpublic boolean getMdiList()
throws java.lang.Throwable
java.lang.Throwablepublic int getMergeOrder()
throws java.lang.Throwable
java.lang.Throwablepublic MenuMerge getMergeType() throws java.lang.Throwable
java.lang.Throwablepublic char getMnemonic()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
IndexOutOfRangeException
public boolean getOwnerDraw()
throws java.lang.Throwable
java.lang.Throwablepublic Menu getParent() throws java.lang.Throwable
java.lang.Throwablepublic boolean getRadioCheck()
throws java.lang.Throwable
java.lang.Throwablepublic Shortcut getShortcut() throws java.lang.Throwable
java.lang.Throwablepublic boolean getShowShortcut()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getText()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getVisible()
throws java.lang.Throwable
java.lang.Throwablepublic MenuItem MergeMenu() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, NullReferenceException, MissingManifestResourceException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, ObjectDisposedException, Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNullReferenceExceptionMissingManifestResourceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionObjectDisposedExceptionWin32Exceptionpublic void MergeMenu(MenuItem itemSrc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, OutOfMemoryException, NotSupportedException, Win32Exception, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionOutOfMemoryExceptionNotSupportedExceptionWin32ExceptionSecurityExceptionpublic void PerformClick()
throws java.lang.Throwable
java.lang.Throwablepublic void PerformSelect()
throws java.lang.Throwable
java.lang.Throwablepublic void removeClick(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removeDrawItem(DrawItemEventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removeMeasureItem(MeasureItemEventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removePopup(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removeSelect(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void setBarBreak(boolean BarBreak)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NullReferenceException,
InvalidOperationException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NotSupportedException,
ObjectDisposedException,
Win32Exception,
SecurityException
public void setBreak(boolean Break)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NullReferenceException,
InvalidOperationException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NotSupportedException,
ObjectDisposedException,
Win32Exception,
SecurityException
public void setChecked(boolean Checked)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
NullReferenceException,
OutOfMemoryException,
Win32Exception,
SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionOutOfMemoryExceptionWin32ExceptionSecurityExceptionpublic void setDefaultItem(boolean DefaultItem)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
MissingManifestResourceException,
NotImplementedException,
ObjectDisposedException,
InvalidOperationException,
NullReferenceException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NotSupportedException,
Win32Exception,
SecurityException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionNullReferenceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionNotSupportedExceptionWin32ExceptionSecurityExceptionpublic void setEnabled(boolean Enabled)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NullReferenceException,
InvalidOperationException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NotSupportedException,
ObjectDisposedException,
Win32Exception,
SecurityException
public void setIndex(int Index)
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
NotImplementedException,
MissingManifestResourceException,
ObjectDisposedException,
NullReferenceException,
OutOfMemoryException,
Win32Exception,
SecurityException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionOutOfMemoryExceptionWin32ExceptionSecurityExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class Menupublic void setMdiList(boolean MdiList)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NullReferenceException,
InvalidOperationException,
OutOfMemoryException,
NotSupportedException,
IndexOutOfRangeException,
ObjectDisposedException,
ArgumentOutOfRangeException,
Win32Exception
public void setMergeOrder(int MergeOrder)
throws java.lang.Throwable
java.lang.Throwablepublic void setMergeType(MenuMerge MergeType) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionpublic void setOwnerDraw(boolean OwnerDraw)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NullReferenceException,
InvalidOperationException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NotSupportedException,
ObjectDisposedException,
Win32Exception,
SecurityException
public void setRadioCheck(boolean RadioCheck)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NullReferenceException,
InvalidOperationException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NotSupportedException,
ObjectDisposedException,
Win32Exception,
SecurityException
public void setShortcut(Shortcut Shortcut) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, AbandonedMutexException, InvalidEnumArgumentException, NullReferenceException, OutOfMemoryException, Win32Exception
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionAbandonedMutexExceptionInvalidEnumArgumentExceptionNullReferenceExceptionOutOfMemoryExceptionWin32Exceptionpublic void setShowShortcut(boolean ShowShortcut)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NullReferenceException,
MissingManifestResourceException,
InvalidOperationException,
ObjectDisposedException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
NotSupportedException,
Win32Exception
public void setText(java.lang.String Text)
throws java.lang.Throwable,
NullReferenceException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NotSupportedException,
ObjectDisposedException,
Win32Exception,
SecurityException
public void setVisible(boolean Visible)
throws java.lang.Throwable
java.lang.Throwable