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.String
assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Windows.Formsstatic java.lang.String
className
Qualified class name: System.Windows.Forms.MenuItemstatic JCType
classType
The 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 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 theIJCOBridgeReflected
instance intoMenuItem
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeboolean
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)
-
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.Throwable
Internal 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classMenu
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classMenu
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classMenu
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classMenu
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMenu
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classMenu
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static MenuItem cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoMenuItem
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MenuItem
instance- 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.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
SecurityException
MissingMethodException
TargetInvocationException
NotSupportedException
NullReferenceException
MissingManifestResourceException
OutOfMemoryException
ArgumentOutOfRangeException
IndexOutOfRangeException
ObjectDisposedException
Win32Exception
-
MergeMenu
public void MergeMenu(MenuItem itemSrc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NullReferenceException, OutOfMemoryException, NotSupportedException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NullReferenceException
OutOfMemoryException
NotSupportedException
Win32Exception
-
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
-
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
-
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
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NullReferenceException
OutOfMemoryException
Win32Exception
-
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
-
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
-
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
-
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
-
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, SecurityException, IndexOutOfRangeException, NotSupportedException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NullReferenceException
MissingManifestResourceException
InvalidOperationException
ObjectDisposedException
ArgumentOutOfRangeException
OutOfMemoryException
SecurityException
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
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
NullReferenceException
OutOfMemoryException
Win32Exception
-
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
-
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.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
-
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, SecurityException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
NotSupportedException
NotImplementedException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
AbandonedMutexException
InvalidEnumArgumentException
NullReferenceException
OutOfMemoryException
SecurityException
Win32Exception
-
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
-
-