Table of Contents

Class MenuItem

Namespace
Java.Awt
Assembly
MASES.JNet.dll
public class MenuItem : MenuComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
Inheritance
JVMBridgeBase
JVMBridgeBase<Serializable>
MenuItem
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeBase<Serializable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Serializable>.IsAssignableFrom<T>()
JVMBridgeBase<Serializable>.Execute<T>(params T[])
JVMBridgeBase<Serializable>.DynBridgeClazz
JVMBridgeBase<Serializable>.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.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

MenuItem()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public MenuItem()

MenuItem(String)

public MenuItem(String arg0)

Parameters

arg0 String

String

Exceptions

HeadlessException

MenuItem(String, MenuShortcut)

public MenuItem(String arg0, MenuShortcut arg1)

Parameters

arg0 String

String

arg1 MenuShortcut

MenuShortcut

Exceptions

HeadlessException

MenuItem(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 MenuItem(params object[] args)

Parameters

args object[]

Properties

ActionCommand

public String ActionCommand { get; set; }

Property Value

String

ActionListeners

public ActionListener[] ActionListeners { get; }

Property Value

ActionListener[]

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

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

Label

public String Label { get; set; }

Property Value

String

Shortcut

public MenuShortcut Shortcut { get; set; }

Property Value

MenuShortcut

Methods

AddActionListener(ActionListener)

public void AddActionListener(ActionListener arg0)

Parameters

arg0 ActionListener

ActionListener

AddNotify()

public void AddNotify()

DeleteShortcut()

public void DeleteShortcut()

GetListeners<T>(Class)

public T[] GetListeners<T>(Class arg0) where T : IEventListener, new()

Parameters

arg0 Class

Class

Returns

T[]

T

Type Parameters

T

IEventListener

IsEnabled()

public bool IsEnabled()

Returns

bool

bool

ParamString()

public String ParamString()

Returns

String

String

RemoveActionListener(ActionListener)

public void RemoveActionListener(ActionListener arg0)

Parameters

arg0 ActionListener

ActionListener

SetEnabled(bool)

public void SetEnabled(bool arg0)

Parameters

arg0 bool

bool

Operators

implicit operator Accessible(MenuItem)

Converter from MenuItem to Accessible

public static implicit operator Accessible(MenuItem t)

Parameters

t MenuItem

Returns

Accessible