Table of Contents

Class JMenuItem

Namespace
Javax.Swing
Assembly
MASES.JNet.dll
public class JMenuItem : AbstractButton, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Component>
JMenuItem
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<Component>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Component>.IsAssignableFrom<T>()
JVMBridgeBase<Component>.Execute<T>(params T[])
JVMBridgeBase<Component>.DynBridgeClazz
JVMBridgeBase<Component>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

arg0 String

String

JMenuItem(String, Icon)

public JMenuItem(String arg0, Icon arg1)

Parameters

arg0 String

String

arg1 Icon

Icon

JMenuItem(String, int)

public JMenuItem(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

JMenuItem(Action)

public JMenuItem(Action arg0)

Parameters

arg0 Action

Action

JMenuItem(Icon)

public JMenuItem(Icon arg0)

Parameters

arg0 Icon

Icon

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

public KeyStroke Accelerator { get; set; }

Property Value

KeyStroke

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Component

public Component Component { get; }

Property Value

Component

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

MenuDragMouseListeners

public MenuDragMouseListener[] MenuDragMouseListeners { get; }

Property Value

MenuDragMouseListener[]

MenuKeyListeners

public MenuKeyListener[] MenuKeyListeners { get; }

Property Value

MenuKeyListener[]

SubElements

public MenuElement[] SubElements { get; }

Property Value

MenuElement[]

Methods

AddMenuDragMouseListener(MenuDragMouseListener)

public void AddMenuDragMouseListener(MenuDragMouseListener arg0)

Parameters

arg0 MenuDragMouseListener

MenuDragMouseListener

AddMenuKeyListener(MenuKeyListener)

public void AddMenuKeyListener(MenuKeyListener arg0)

Parameters

arg0 MenuKeyListener

MenuKeyListener

IsArmed()

public bool IsArmed()

Returns

bool

bool

MenuSelectionChanged(bool)

public void MenuSelectionChanged(bool arg0)

Parameters

arg0 bool

bool

ProcessKeyEvent(KeyEvent, MenuElement[], MenuSelectionManager)

public void ProcessKeyEvent(KeyEvent arg0, MenuElement[] arg1, MenuSelectionManager arg2)

Parameters

arg0 KeyEvent

KeyEvent

arg1 MenuElement[]

MenuElement

arg2 MenuSelectionManager

MenuSelectionManager

ProcessMenuDragMouseEvent(MenuDragMouseEvent)

public void ProcessMenuDragMouseEvent(MenuDragMouseEvent arg0)

Parameters

arg0 MenuDragMouseEvent

MenuDragMouseEvent

ProcessMenuKeyEvent(MenuKeyEvent)

public void ProcessMenuKeyEvent(MenuKeyEvent arg0)

Parameters

arg0 MenuKeyEvent

MenuKeyEvent

ProcessMouseEvent(MouseEvent, MenuElement[], MenuSelectionManager)

public void ProcessMouseEvent(MouseEvent arg0, MenuElement[] arg1, MenuSelectionManager arg2)

Parameters

arg0 MouseEvent

MouseEvent

arg1 MenuElement[]

MenuElement

arg2 MenuSelectionManager

MenuSelectionManager

RemoveMenuDragMouseListener(MenuDragMouseListener)

public void RemoveMenuDragMouseListener(MenuDragMouseListener arg0)

Parameters

arg0 MenuDragMouseListener

MenuDragMouseListener

RemoveMenuKeyListener(MenuKeyListener)

public void RemoveMenuKeyListener(MenuKeyListener arg0)

Parameters

arg0 MenuKeyListener

MenuKeyListener

SetArmed(bool)

public void SetArmed(bool arg0)

Parameters

arg0 bool

bool

SetUI(MenuItemUI)

public void SetUI(MenuItemUI arg0)

Parameters

arg0 MenuItemUI

MenuItemUI

Operators

implicit operator Accessible(JMenuItem)

Converter from JMenuItem to Accessible

public static implicit operator Accessible(JMenuItem t)

Parameters

t JMenuItem

Returns

Accessible

implicit operator MenuElement(JMenuItem)

Converter from JMenuItem to MenuElement

public static implicit operator MenuElement(JMenuItem t)

Parameters

t JMenuItem

Returns

MenuElement