Class JMenuItem
public class JMenuItem : AbstractButton, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Component>JMenuItem
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<Component>.IsAssignableFrom(IJavaType)JVMBridgeBase<Component>.IsAssignableFrom<T>()JVMBridgeBase<Component>.Execute<T>(params T[])JVMBridgeBase<Component>.DynBridgeClazzJVMBridgeBase<Component>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
JMenuItem()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public JMenuItem()
JMenuItem(String)
public JMenuItem(String arg0)
Parameters
JMenuItem(String, Icon)
public JMenuItem(String arg0, Icon arg1)
Parameters
JMenuItem(String, int)
public JMenuItem(String arg0, int arg1)
Parameters
JMenuItem(Action)
public JMenuItem(Action arg0)
Parameters
JMenuItem(Icon)
public JMenuItem(Icon arg0)
Parameters
JMenuItem(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public JMenuItem(params object[] args)
Parameters
args
object[]
Properties
Accelerator
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuItem.html#getAccelerator() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuItem.html#setAccelerator(javax.swing.KeyStroke)
public KeyStroke Accelerator { get; set; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Component
public Component Component { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
MenuDragMouseListeners
public MenuDragMouseListener[] MenuDragMouseListeners { get; }
Property Value
MenuKeyListeners
public MenuKeyListener[] MenuKeyListeners { get; }
Property Value
SubElements
public MenuElement[] SubElements { get; }
Property Value
Methods
AddMenuDragMouseListener(MenuDragMouseListener)
public void AddMenuDragMouseListener(MenuDragMouseListener arg0)
Parameters
AddMenuKeyListener(MenuKeyListener)
public void AddMenuKeyListener(MenuKeyListener arg0)
Parameters
IsArmed()
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuItem.html#isArmed()
public bool IsArmed()
Returns
MenuSelectionChanged(bool)
public void MenuSelectionChanged(bool arg0)
Parameters
ProcessKeyEvent(KeyEvent, MenuElement[], MenuSelectionManager)
public void ProcessKeyEvent(KeyEvent arg0, MenuElement[] arg1, MenuSelectionManager arg2)
Parameters
arg0
KeyEventarg1
MenuElement[]arg2
MenuSelectionManager
ProcessMenuDragMouseEvent(MenuDragMouseEvent)
public void ProcessMenuDragMouseEvent(MenuDragMouseEvent arg0)
Parameters
ProcessMenuKeyEvent(MenuKeyEvent)
public void ProcessMenuKeyEvent(MenuKeyEvent arg0)
Parameters
arg0
MenuKeyEvent
ProcessMouseEvent(MouseEvent, MenuElement[], MenuSelectionManager)
public void ProcessMouseEvent(MouseEvent arg0, MenuElement[] arg1, MenuSelectionManager arg2)
Parameters
arg0
MouseEventarg1
MenuElement[]arg2
MenuSelectionManager
RemoveMenuDragMouseListener(MenuDragMouseListener)
public void RemoveMenuDragMouseListener(MenuDragMouseListener arg0)
Parameters
RemoveMenuKeyListener(MenuKeyListener)
public void RemoveMenuKeyListener(MenuKeyListener arg0)
Parameters
SetArmed(bool)
public void SetArmed(bool arg0)
Parameters
SetUI(MenuItemUI)
public void SetUI(MenuItemUI arg0)
Parameters
arg0
MenuItemUI
Operators
implicit operator Accessible(JMenuItem)
Converter from JMenuItem to Accessible
public static implicit operator Accessible(JMenuItem t)
Parameters
Returns
implicit operator MenuElement(JMenuItem)
Converter from JMenuItem to MenuElement
public static implicit operator MenuElement(JMenuItem t)