Table of Contents

Class JMenu

Namespace
Javax.Swing
Assembly
MASES.JNet.dll
public class JMenu : JMenuItem, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Component>
JMenu
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
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

JMenu()

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

public JMenu()

JMenu(String)

public JMenu(String arg0)

Parameters

arg0 String

String

JMenu(String, bool)

public JMenu(String arg0, bool arg1)

Parameters

arg0 String

String

arg1 bool

bool

JMenu(Action)

public JMenu(Action arg0)

Parameters

arg0 Action

Action

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

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Delay

public int Delay { get; set; }

Property Value

int

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

ItemCount

public int ItemCount { get; }

Property Value

int

MenuComponentCount

public int MenuComponentCount { get; }

Property Value

int

MenuComponents

public Component[] MenuComponents { get; }

Property Value

Component[]

MenuListeners

public MenuListener[] MenuListeners { get; }

Property Value

MenuListener[]

PopupMenu

public JPopupMenu PopupMenu { get; }

Property Value

JPopupMenu

Methods

Add(String)

public JMenuItem Add(String arg0)

Parameters

arg0 String

String

Returns

JMenuItem

JMenuItem

Add(Action)

public JMenuItem Add(Action arg0)

Parameters

arg0 Action

Action

Returns

JMenuItem

JMenuItem

Add(JMenuItem)

public JMenuItem Add(JMenuItem arg0)

Parameters

arg0 JMenuItem

JMenuItem

Returns

JMenuItem

JMenuItem

AddMenuListener(MenuListener)

public void AddMenuListener(MenuListener arg0)

Parameters

arg0 MenuListener

MenuListener

AddSeparator()

public void AddSeparator()

GetItem(int)

public JMenuItem GetItem(int arg0)

Parameters

arg0 int

int

Returns

JMenuItem

JMenuItem

GetMenuComponent(int)

public Component GetMenuComponent(int arg0)

Parameters

arg0 int

int

Returns

Component

Component

Insert(String, int)

public void Insert(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Insert(Action, int)

public JMenuItem Insert(Action arg0, int arg1)

Parameters

arg0 Action

Action

arg1 int

int

Returns

JMenuItem

JMenuItem

Insert(JMenuItem, int)

public JMenuItem Insert(JMenuItem arg0, int arg1)

Parameters

arg0 JMenuItem

JMenuItem

arg1 int

int

Returns

JMenuItem

JMenuItem

InsertSeparator(int)

public void InsertSeparator(int arg0)

Parameters

arg0 int

int

IsMenuComponent(Component)

public bool IsMenuComponent(Component arg0)

Parameters

arg0 Component

Component

Returns

bool

bool

IsPopupMenuVisible()

public bool IsPopupMenuVisible()

Returns

bool

bool

IsTearOff()

public bool IsTearOff()

Returns

bool

bool

IsTopLevelMenu()

public bool IsTopLevelMenu()

Returns

bool

bool

Remove(JMenuItem)

public void Remove(JMenuItem arg0)

Parameters

arg0 JMenuItem

JMenuItem

RemoveMenuListener(MenuListener)

public void RemoveMenuListener(MenuListener arg0)

Parameters

arg0 MenuListener

MenuListener

SetMenuLocation(int, int)

public void SetMenuLocation(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

SetPopupMenuVisible(bool)

public void SetPopupMenuVisible(bool arg0)

Parameters

arg0 bool

bool