Class MenuItem
public class MenuItem : MenuComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Serializable>MenuItem
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<Serializable>.IsAssignableFrom(IJavaType)JVMBridgeBase<Serializable>.IsAssignableFrom<T>()JVMBridgeBase<Serializable>.Execute<T>(params T[])JVMBridgeBase<Serializable>.DynBridgeClazzJVMBridgeBase<Serializable>.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.Dispose()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
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
Exceptions
MenuItem(String, MenuShortcut)
public MenuItem(String arg0, MenuShortcut arg1)
Parameters
arg0
Stringarg1
MenuShortcut
Exceptions
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
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/MenuItem.html#getActionCommand() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/MenuItem.html#setActionCommand(java.lang.String)
public String ActionCommand { get; set; }
Property Value
ActionListeners
public ActionListener[] ActionListeners { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
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
Label
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/MenuItem.html#getLabel() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/MenuItem.html#setLabel(java.lang.String)
public String Label { get; set; }
Property Value
Shortcut
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/MenuItem.html#getShortcut() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/MenuItem.html#setShortcut(java.awt.MenuShortcut)
public MenuShortcut Shortcut { get; set; }
Property Value
Methods
AddActionListener(ActionListener)
public void AddActionListener(ActionListener arg0)
Parameters
AddNotify()
public void AddNotify()
DeleteShortcut()
public void DeleteShortcut()
GetListeners<T>(Class)
public T[] GetListeners<T>(Class arg0) where T : IEventListener, new()
Parameters
Returns
- T[]
T
Type Parameters
IsEnabled()
public bool IsEnabled()
Returns
ParamString()
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/MenuItem.html#paramString()
public String ParamString()
Returns
RemoveActionListener(ActionListener)
public void RemoveActionListener(ActionListener arg0)
Parameters
SetEnabled(bool)
public void SetEnabled(bool arg0)
Parameters
Operators
implicit operator Accessible(MenuItem)
Converter from MenuItem to Accessible
public static implicit operator Accessible(MenuItem t)
Parameters
t
MenuItem