Package system.windows.forms
Class ToolStripMenuItem
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,IDropTarget
public class ToolStripMenuItem extends ToolStripDropDownItem
The base .NET class managing System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.ToolStripMenuItem
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=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Windows.Formsstatic java.lang.StringclassNameQualified class name: System.Windows.Forms.ToolStripMenuItemstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ToolStripMenuItem()ToolStripMenuItem(java.lang.Object instance)Internal constructor.ToolStripMenuItem(java.lang.String text)ToolStripMenuItem(java.lang.String text, Image image)ToolStripMenuItem(java.lang.String text, Image image, EventHandler onClick)ToolStripMenuItem(java.lang.String text, Image image, EventHandler onClick, java.lang.String name)ToolStripMenuItem(java.lang.String text, Image image, EventHandler onClick, Keys shortcutKeys)ToolStripMenuItem(java.lang.String text, Image image, ToolStripItem... dropDownItems)ToolStripMenuItem(Image image)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCheckedChanged(EventHandler handler)voidaddCheckStateChanged(EventHandler handler)static ToolStripMenuItemcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoToolStripMenuItem, a cast assert is made to check if types are compatible.booleangetChecked()booleangetCheckOnClick()CheckStategetCheckState()booleangetIsMdiWindowListEntry()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 TypeToolStripItemOverflowgetOverflow()java.lang.StringgetShortcutKeyDisplayString()KeysgetShortcutKeys()booleangetShowShortcutKeys()voidremoveCheckedChanged(EventHandler handler)voidremoveCheckStateChanged(EventHandler handler)voidsetChecked(boolean Checked)voidsetCheckOnClick(boolean CheckOnClick)voidsetCheckState(CheckState CheckState)voidsetJCOInstance(JCObject instance)voidsetOverflow(ToolStripItemOverflow Overflow)voidsetShortcutKeyDisplayString(java.lang.String ShortcutKeyDisplayString)voidsetShortcutKeys(Keys ShortcutKeys)voidsetShowShortcutKeys(boolean ShowShortcutKeys)-
Methods inherited from class system.windows.forms.ToolStripDropDownItem
addDropDownClosed, addDropDownItemClicked, addDropDownOpened, addDropDownOpening, getDropDown, getDropDownDirection, getDropDownItems, getHasDropDown, getHasDropDownItems, HideDropDown, removeDropDownClosed, removeDropDownItemClicked, removeDropDownOpened, removeDropDownOpening, setDropDown, setDropDownDirection, ShowDropDown
-
Methods inherited from class system.windows.forms.ToolStripItem
addAvailableChanged, addBackColorChanged, addClick, addCommandCanExecuteChanged, addCommandChanged, addCommandParameterChanged, addDisplayStyleChanged, addDoubleClick, addDragDrop, addDragEnter, addDragLeave, addDragOver, addEnabledChanged, addForeColorChanged, addGiveFeedback, addLocationChanged, addMouseDown, addMouseEnter, addMouseHover, addMouseLeave, addMouseMove, addMouseUp, addOwnerChanged, addPaint, addQueryAccessibilityHelp, addQueryContinueDrag, addRightToLeftChanged, addSelectedChanged, addTextChanged, addVisibleChanged, DoDragDrop, DoDragDrop, getAccessibilityObject, getAccessibleDefaultActionDescription, getAccessibleDescription, getAccessibleName, getAccessibleRole, getAlignment, getAllowDrop, getAnchor, getAutoSize, getAutoToolTip, getAvailable, getBackColor, getBackgroundImage, getBackgroundImageLayout, getBounds, getCanSelect, getCommand, getCommandParameter, getContentRectangle, GetCurrentParent, getDisplayStyle, getDock, getDoubleClickEnabled, getEnabled, getFont, getForeColor, getHeight, getImage, getImageAlign, getImageIndex, getImageKey, getImageScaling, getImageTransparentColor, getIsDisposed, getIsOnDropDown, getIsOnOverflow, getMargin, getMergeAction, getMergeIndex, getName, getOwner, getOwnerItem, getPadding, getPlacement, GetPreferredSize, getPressed, getRightToLeft, getRightToLeftAutoMirrorImage, getSelected, getSize, getTag, getText, getTextAlign, getTextDirection, getTextImageRelation, getToolTipText, getVisible, getWidth, Invalidate, Invalidate, PerformClick, removeAvailableChanged, removeBackColorChanged, removeClick, removeCommandCanExecuteChanged, removeCommandChanged, removeCommandParameterChanged, removeDisplayStyleChanged, removeDoubleClick, removeDragDrop, removeDragEnter, removeDragLeave, removeDragOver, removeEnabledChanged, removeForeColorChanged, removeGiveFeedback, removeLocationChanged, removeMouseDown, removeMouseEnter, removeMouseHover, removeMouseLeave, removeMouseMove, removeMouseUp, removeOwnerChanged, removePaint, removeQueryAccessibilityHelp, removeQueryContinueDrag, removeRightToLeftChanged, removeSelectedChanged, removeTextChanged, removeVisibleChanged, ResetBackColor, ResetDisplayStyle, ResetFont, ResetForeColor, ResetImage, ResetMargin, ResetPadding, ResetRightToLeft, ResetTextDirection, Select, setAccessibleDefaultActionDescription, setAccessibleDescription, setAccessibleName, setAccessibleRole, setAlignment, setAllowDrop, setAnchor, setAutoSize, setAutoToolTip, setAvailable, setBackColor, setBackgroundImage, setBackgroundImageLayout, setCommand, setCommandParameter, setDisplayStyle, setDock, setDoubleClickEnabled, setEnabled, setFont, setForeColor, setHeight, setImage, setImageAlign, setImageIndex, setImageKey, setImageScaling, setImageTransparentColor, setMargin, setMergeAction, setMergeIndex, setName, setOwner, setPadding, setRightToLeft, setRightToLeftAutoMirrorImage, setSize, setTag, setText, setTextAlign, setTextDirection, setTextImageRelation, setToolTipText, setVisible, setWidth
-
Methods inherited from class system.windows.forms.BindableComponent
addBindingContextChanged, getBindingContext, getDataBindings, removeBindingContextChanged, setBindingContext
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.windows.forms.IDropTarget
OnDragDrop, OnDragEnter, OnDragLeave, OnDragOver
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=9.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.ToolStripMenuItem- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToolStripMenuItem
public ToolStripMenuItem(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
ToolStripMenuItem
public ToolStripMenuItem() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, LockRecursionException, NotSupportedException, OutOfMemoryException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionArgumentNullExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionLockRecursionExceptionNotSupportedExceptionOutOfMemoryExceptionAbandonedMutexExceptionSynchronizationLockExceptionInvalidEnumArgumentExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeException
-
ToolStripMenuItem
public ToolStripMenuItem(Image image) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, LockRecursionException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OverflowException, MulticastNotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionLockRecursionExceptionSynchronizationLockExceptionInvalidEnumArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOverflowExceptionMulticastNotSupportedExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationException
-
ToolStripMenuItem
public ToolStripMenuItem(java.lang.String text, Image image, EventHandler onClick, java.lang.String name) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, LockRecursionException, AbandonedMutexException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, OverflowException, InvalidOperationException, InvalidAsynchronousStateException, MulticastNotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionLockRecursionExceptionAbandonedMutexExceptionSynchronizationLockExceptionInvalidEnumArgumentExceptionArgumentOutOfRangeExceptionOverflowExceptionInvalidOperationExceptionInvalidAsynchronousStateExceptionMulticastNotSupportedExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationException
-
ToolStripMenuItem
public ToolStripMenuItem(java.lang.String text, Image image, EventHandler onClick, Keys shortcutKeys) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, LockRecursionException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OverflowException, MulticastNotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException, NotSupportedException, Win32Exception- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionLockRecursionExceptionSynchronizationLockExceptionInvalidEnumArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOverflowExceptionMulticastNotSupportedExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionWin32Exception
-
ToolStripMenuItem
public ToolStripMenuItem(java.lang.String text, Image image, EventHandler onClick) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, LockRecursionException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OverflowException, MulticastNotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionLockRecursionExceptionSynchronizationLockExceptionInvalidEnumArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOverflowExceptionMulticastNotSupportedExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationException
-
ToolStripMenuItem
public ToolStripMenuItem(java.lang.String text, Image image, ToolStripItem... dropDownItems) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SynchronizationLockException, InvalidEnumArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, MulticastNotSupportedException, CultureNotFoundException, NotSupportedException, ObjectDisposedException, TypeLoadException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSynchronizationLockExceptionInvalidEnumArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionMulticastNotSupportedExceptionCultureNotFoundExceptionNotSupportedExceptionObjectDisposedExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationException
-
ToolStripMenuItem
public ToolStripMenuItem(java.lang.String text, Image image) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, LockRecursionException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OverflowException, MulticastNotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionLockRecursionExceptionSynchronizationLockExceptionInvalidEnumArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOverflowExceptionMulticastNotSupportedExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationException
-
ToolStripMenuItem
public ToolStripMenuItem(java.lang.String text) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentException, LockRecursionException, SynchronizationLockException, InvalidEnumArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OverflowException, MulticastNotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionLockRecursionExceptionSynchronizationLockExceptionInvalidEnumArgumentExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOverflowExceptionMulticastNotSupportedExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDropTarget- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classToolStripDropDownItem- 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 interfaceIDropTarget- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classToolStripDropDownItem- 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 interfaceIDropTarget- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classToolStripDropDownItem- 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 interfaceIDropTarget- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classToolStripDropDownItem- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classToolStripDropDownItem
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDropTarget- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classToolStripDropDownItem- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ToolStripMenuItem cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoToolStripMenuItem, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ToolStripMenuIteminstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
getChecked
public boolean getChecked() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setChecked
public void setChecked(boolean Checked) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, RankException, NotSupportedException, ArrayTypeMismatchException, InvalidCastException, InvalidOperationException- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionArgumentNullExceptionRankExceptionNotSupportedExceptionArrayTypeMismatchExceptionInvalidCastExceptionInvalidOperationException
-
getCheckOnClick
public boolean getCheckOnClick() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setCheckOnClick
public void setCheckOnClick(boolean CheckOnClick) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getIsMdiWindowListEntry
public boolean getIsMdiWindowListEntry() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getShowShortcutKeys
public boolean getShowShortcutKeys() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setShowShortcutKeys
public void setShowShortcutKeys(boolean ShowShortcutKeys) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidCastException, Win32Exception, InvalidOperationException, NotSupportedException
-
getShortcutKeyDisplayString
public java.lang.String getShortcutKeyDisplayString() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setShortcutKeyDisplayString
public void setShortcutKeyDisplayString(java.lang.String ShortcutKeyDisplayString) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, Win32Exception, InvalidOperationException
-
getCheckState
public CheckState getCheckState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCheckState
public void setCheckState(CheckState CheckState) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, RankException, NotSupportedException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionArgumentNullExceptionRankExceptionNotSupportedExceptionArrayTypeMismatchExceptionInvalidCastException
-
getShortcutKeys
public Keys getShortcutKeys() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setShortcutKeys
public void setShortcutKeys(Keys ShortcutKeys) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, RankException, InvalidCastException, OutOfMemoryException, Win32Exception
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionInvalidOperationExceptionNotSupportedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionRankExceptionInvalidCastExceptionOutOfMemoryExceptionWin32Exception
-
getOverflow
public ToolStripItemOverflow getOverflow() throws java.lang.Throwable
- Overrides:
getOverflowin classToolStripItem- Throws:
java.lang.Throwable
-
setOverflow
public void setOverflow(ToolStripItemOverflow Overflow) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, RankException, ArrayTypeMismatchException, InvalidCastException
- Overrides:
setOverflowin classToolStripItem- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionArgumentNullExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastException
-
addCheckedChanged
public void addCheckedChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeCheckedChanged
public void removeCheckedChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addCheckStateChanged
public void addCheckStateChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeCheckStateChanged
public void removeCheckStateChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-