Table of Contents

Class JMenuBar

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

JMenuBar()

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

public JMenuBar()

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

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Component

public Component Component { get; }

Property Value

Component

HelpMenu

public JMenu HelpMenu { get; set; }

Property Value

JMenu

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

Margin

public Insets Margin { get; set; }

Property Value

Insets

MenuCount

public int MenuCount { get; }

Property Value

int

SelectionModel

public SingleSelectionModel SelectionModel { get; set; }

Property Value

SingleSelectionModel

SubElements

public MenuElement[] SubElements { get; }

Property Value

MenuElement[]

Methods

Add(JMenu)

public JMenu Add(JMenu arg0)

Parameters

arg0 JMenu

JMenu

Returns

JMenu

JMenu

GetComponentIndex(Component)

public int GetComponentIndex(Component arg0)

Parameters

arg0 Component

Component

Returns

int

int

GetMenu(int)

public JMenu GetMenu(int arg0)

Parameters

arg0 int

int

Returns

JMenu

JMenu

IsBorderPainted()

public bool IsBorderPainted()

Returns

bool

bool

IsSelected()

public bool IsSelected()

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

ProcessMouseEvent(MouseEvent, MenuElement[], MenuSelectionManager)

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

Parameters

arg0 MouseEvent

MouseEvent

arg1 MenuElement[]

MenuElement

arg2 MenuSelectionManager

MenuSelectionManager

SetBorderPainted(bool)

public void SetBorderPainted(bool arg0)

Parameters

arg0 bool

bool

SetSelected(Component)

public void SetSelected(Component arg0)

Parameters

arg0 Component

Component

SetUI(MenuBarUI)

public void SetUI(MenuBarUI arg0)

Parameters

arg0 MenuBarUI

MenuBarUI

Operators

implicit operator Accessible(JMenuBar)

Converter from JMenuBar to Accessible

public static implicit operator Accessible(JMenuBar t)

Parameters

t JMenuBar

Returns

Accessible

implicit operator MenuElement(JMenuBar)

Converter from JMenuBar to MenuElement

public static implicit operator MenuElement(JMenuBar t)

Parameters

t JMenuBar

Returns

MenuElement