Class JMenu
public class JMenu : JMenuItem, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Component>JMenu
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- 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
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
JMenu(String, bool)
public JMenu(String arg0, bool arg1)
Parameters
JMenu(Action)
public JMenu(Action arg0)
Parameters
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
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Delay
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenu.html#getDelay() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JMenu.html#setDelay(int)
public int Delay { 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
ItemCount
public int ItemCount { get; }
Property Value
MenuComponentCount
public int MenuComponentCount { get; }
Property Value
MenuComponents
public Component[] MenuComponents { get; }
Property Value
MenuListeners
public MenuListener[] MenuListeners { get; }
Property Value
PopupMenu
public JPopupMenu PopupMenu { get; }
Property Value
Methods
Add(String)
public JMenuItem Add(String arg0)
Parameters
Returns
Add(Action)
public JMenuItem Add(Action arg0)
Parameters
Returns
Add(JMenuItem)
public JMenuItem Add(JMenuItem arg0)
Parameters
Returns
AddMenuListener(MenuListener)
public void AddMenuListener(MenuListener arg0)
Parameters
arg0
MenuListener
AddSeparator()
public void AddSeparator()
GetItem(int)
public JMenuItem GetItem(int arg0)
Parameters
Returns
GetMenuComponent(int)
public Component GetMenuComponent(int arg0)
Parameters
Returns
Insert(String, int)
public void Insert(String arg0, int arg1)
Parameters
Insert(Action, int)
public JMenuItem Insert(Action arg0, int arg1)
Parameters
Returns
Insert(JMenuItem, int)
public JMenuItem Insert(JMenuItem arg0, int arg1)
Parameters
Returns
InsertSeparator(int)
public void InsertSeparator(int arg0)
Parameters
IsMenuComponent(Component)
public bool IsMenuComponent(Component arg0)
Parameters
Returns
IsPopupMenuVisible()
public bool IsPopupMenuVisible()
Returns
IsTearOff()
public bool IsTearOff()
Returns
IsTopLevelMenu()
public bool IsTopLevelMenu()
Returns
Remove(JMenuItem)
public void Remove(JMenuItem arg0)
Parameters
RemoveMenuListener(MenuListener)
public void RemoveMenuListener(MenuListener arg0)
Parameters
arg0
MenuListener
SetMenuLocation(int, int)
public void SetMenuLocation(int arg0, int arg1)
Parameters
SetPopupMenuVisible(bool)
public void SetPopupMenuVisible(bool arg0)