Class JMenuBar
public class JMenuBar : JComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Component>JMenuBar
- 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
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
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
HelpMenu
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuBar.html#getHelpMenu() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuBar.html#setHelpMenu(javax.swing.JMenu)
public JMenu HelpMenu { get; set; }
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
Margin
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuBar.html#getMargin() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuBar.html#setMargin(java.awt.Insets)
public Insets Margin { get; set; }
Property Value
MenuCount
public int MenuCount { get; }
Property Value
SelectionModel
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuBar.html#getSelectionModel() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenuBar.html#setSelectionModel(javax.swing.SingleSelectionModel)
public SingleSelectionModel SelectionModel { get; set; }
Property Value
SubElements
public MenuElement[] SubElements { get; }
Property Value
Methods
Add(JMenu)
public JMenu Add(JMenu arg0)
Parameters
Returns
GetComponentIndex(Component)
public int GetComponentIndex(Component arg0)
Parameters
Returns
GetMenu(int)
public JMenu GetMenu(int arg0)
Parameters
Returns
IsBorderPainted()
public bool IsBorderPainted()
Returns
IsSelected()
public bool IsSelected()
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
ProcessMouseEvent(MouseEvent, MenuElement[], MenuSelectionManager)
public void ProcessMouseEvent(MouseEvent arg0, MenuElement[] arg1, MenuSelectionManager arg2)
Parameters
arg0
MouseEventarg1
MenuElement[]arg2
MenuSelectionManager
SetBorderPainted(bool)
public void SetBorderPainted(bool arg0)
Parameters
SetSelected(Component)
public void SetSelected(Component arg0)
Parameters
SetUI(MenuBarUI)
public void SetUI(MenuBarUI arg0)
Parameters
Operators
implicit operator Accessible(JMenuBar)
Converter from JMenuBar to Accessible
public static implicit operator Accessible(JMenuBar t)
Parameters
t
JMenuBar
Returns
implicit operator MenuElement(JMenuBar)
Converter from JMenuBar to MenuElement
public static implicit operator MenuElement(JMenuBar t)
Parameters
t
JMenuBar