Package system.windows.forms
Class MenuItem
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.windows.forms.Menu
-
- system.windows.forms.MenuItem
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class MenuItem extends Menu
The base .NET class managing System.Windows.Forms.MenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Windows.Formsstatic java.lang.StringclassNameQualified class name: System.Windows.Forms.MenuItemstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description MenuItem()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)MenuItem(MenuMerge mergeType, int mergeOrder, Shortcut shortcut, java.lang.String text, EventHandler onClick, EventHandler onPopup, EventHandler onSelect, MenuItem[] items)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClick(EventHandler handler)voidaddDrawItem(DrawItemEventHandler handler)voidaddMeasureItem(MeasureItemEventHandler handler)voidaddPopup(EventHandler handler)voidaddSelect(EventHandler handler)static MenuItemcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoMenuItem, a cast assert is made to check if types are compatible.MenuItemCloneMenu()booleangetBarBreak()booleangetBreak()booleangetChecked()booleangetDefaultItem()booleangetEnabled()intgetIndex()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypebooleangetMdiList()intgetMergeOrder()MenuMergegetMergeType()chargetMnemonic()booleangetOwnerDraw()MenugetParent()booleangetRadioCheck()ShortcutgetShortcut()booleangetShowShortcut()java.lang.StringgetText()booleangetVisible()MenuItemMergeMenu()voidMergeMenu(MenuItem itemSrc)voidPerformClick()voidPerformSelect()voidremoveClick(EventHandler handler)voidremoveDrawItem(DrawItemEventHandler handler)voidremoveMeasureItem(MeasureItemEventHandler handler)voidremovePopup(EventHandler handler)voidremoveSelect(EventHandler handler)voidsetBarBreak(boolean BarBreak)voidsetBreak(boolean Break)voidsetChecked(boolean Checked)voidsetDefaultItem(boolean DefaultItem)voidsetEnabled(boolean Enabled)voidsetIndex(int Index)voidsetJCOInstance(JCObject instance)voidsetMdiList(boolean MdiList)voidsetMergeOrder(int MergeOrder)voidsetMergeType(MenuMerge MergeType)voidsetOwnerDraw(boolean OwnerDraw)voidsetRadioCheck(boolean RadioCheck)voidsetShortcut(Shortcut Shortcut)voidsetShowShortcut(boolean ShowShortcut)voidsetText(java.lang.String Text)voidsetVisible(boolean Visible)-
Methods inherited from class system.windows.forms.Menu
GetContextMenu, getIsParent, GetMainMenu, getMdiListItem, getName, getTag, MergeMenu, setName, setTag
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Forms- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Forms.MenuItem- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MenuItem
public MenuItem(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
MenuItem
public MenuItem() throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
MenuItem
public MenuItem(java.lang.String text) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
MenuItem
public MenuItem(java.lang.String text, EventHandler onClick) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
MenuItem
public MenuItem(java.lang.String text, EventHandler onClick, Shortcut shortcut) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
MenuItem
public MenuItem(java.lang.String text, MenuItem[] items) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
MenuItem
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
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classMenu- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classMenu- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classMenu- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classMenu- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMenu
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classMenu- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static MenuItem cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoMenuItem, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
MenuIteminstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
CloneMenu
public MenuItem CloneMenu() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException
-
MergeMenu
public MenuItem MergeMenu() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, NullReferenceException, MissingManifestResourceException, OutOfMemoryException, ArgumentOutOfRangeException, IndexOutOfRangeException, ObjectDisposedException, Win32Exception
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNullReferenceExceptionMissingManifestResourceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionObjectDisposedExceptionWin32Exception
-
MergeMenu
public void MergeMenu(MenuItem itemSrc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, OutOfMemoryException, NotSupportedException, Win32Exception, SecurityException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionOutOfMemoryExceptionNotSupportedExceptionWin32ExceptionSecurityException
-
PerformClick
public void PerformClick() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
PerformSelect
public void PerformSelect() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getBarBreak
public boolean getBarBreak() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setBarBreak
public void setBarBreak(boolean BarBreak) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NullReferenceException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, Win32Exception, SecurityException
-
getBreak
public boolean getBreak() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setBreak
public void setBreak(boolean Break) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NullReferenceException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, Win32Exception, SecurityException
-
getChecked
public boolean getChecked() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setChecked
public void setChecked(boolean Checked) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, OutOfMemoryException, Win32Exception, SecurityException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionOutOfMemoryExceptionWin32ExceptionSecurityException
-
getDefaultItem
public boolean getDefaultItem() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setDefaultItem
public void setDefaultItem(boolean DefaultItem) throws java.lang.Throwable, ArgumentException, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, NullReferenceException, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, Win32Exception, SecurityException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionNullReferenceExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionNotSupportedExceptionWin32ExceptionSecurityException
-
getEnabled
public boolean getEnabled() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setEnabled
public void setEnabled(boolean Enabled) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NullReferenceException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, Win32Exception, SecurityException
-
getMdiList
public boolean getMdiList() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setMdiList
public void setMdiList(boolean MdiList) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NullReferenceException, InvalidOperationException, OutOfMemoryException, NotSupportedException, IndexOutOfRangeException, ObjectDisposedException, ArgumentOutOfRangeException, Win32Exception
-
getOwnerDraw
public boolean getOwnerDraw() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setOwnerDraw
public void setOwnerDraw(boolean OwnerDraw) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NullReferenceException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, Win32Exception, SecurityException
-
getRadioCheck
public boolean getRadioCheck() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setRadioCheck
public void setRadioCheck(boolean RadioCheck) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NullReferenceException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, Win32Exception, SecurityException
-
getShowShortcut
public boolean getShowShortcut() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setShowShortcut
public void setShowShortcut(boolean ShowShortcut) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NullReferenceException, MissingManifestResourceException, InvalidOperationException, ObjectDisposedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, Win32Exception
-
getVisible
public boolean getVisible() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setVisible
public void setVisible(boolean Visible) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMnemonic
public char getMnemonic() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, IndexOutOfRangeException
-
getIndex
public int getIndex() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIndex
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- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionNullReferenceExceptionOutOfMemoryExceptionWin32ExceptionSecurityException
-
getMergeOrder
public int getMergeOrder() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setMergeOrder
public void setMergeOrder(int MergeOrder) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getText
public java.lang.String getText() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setText
public void setText(java.lang.String Text) throws java.lang.Throwable, NullReferenceException, ArgumentNullException, ArgumentException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, Win32Exception, SecurityException
-
getParent
public Menu getParent() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMergeType
public MenuMerge getMergeType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setMergeType
public void setMergeType(MenuMerge MergeType) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentException
-
getShortcut
public Shortcut getShortcut() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setShortcut
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
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionAbandonedMutexExceptionInvalidEnumArgumentExceptionNullReferenceExceptionOutOfMemoryExceptionWin32Exception
-
addClick
public void addClick(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeClick
public void removeClick(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addPopup
public void addPopup(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removePopup
public void removePopup(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addSelect
public void addSelect(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeSelect
public void removeSelect(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addDrawItem
public void addDrawItem(DrawItemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeDrawItem
public void removeDrawItem(DrawItemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addMeasureItem
public void addMeasureItem(MeasureItemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeMeasureItem
public void removeMeasureItem(MeasureItemEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-