Class JPopupMenu
public class JPopupMenu : JComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Component>JPopupMenu
- 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
JPopupMenu()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public JPopupMenu()
JPopupMenu(String)
public JPopupMenu(String arg0)
Parameters
JPopupMenu(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 JPopupMenu(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
DefaultLightWeightPopupEnabled
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JPopupMenu.html#getDefaultLightWeightPopupEnabled() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JPopupMenu.html#setDefaultLightWeightPopupEnabled(boolean)
public static bool DefaultLightWeightPopupEnabled { get; set; }
Property Value
Invoker
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JPopupMenu.html#getInvoker() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JPopupMenu.html#setInvoker(java.awt.Component)
public Component Invoker { 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
Label
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JPopupMenu.html#getLabel() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JPopupMenu.html#setLabel(java.lang.String)
public String Label { get; set; }
Property Value
Margin
public Insets Margin { get; }
Property Value
MenuKeyListeners
public MenuKeyListener[] MenuKeyListeners { get; }
Property Value
PopupMenuListeners
public PopupMenuListener[] PopupMenuListeners { get; }
Property Value
SelectionModel
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JPopupMenu.html#getSelectionModel() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JPopupMenu.html#setSelectionModel(javax.swing.SingleSelectionModel)
public SingleSelectionModel SelectionModel { get; set; }
Property Value
SubElements
public MenuElement[] SubElements { 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
AddMenuKeyListener(MenuKeyListener)
public void AddMenuKeyListener(MenuKeyListener arg0)
Parameters
AddPopupMenuListener(PopupMenuListener)
public void AddPopupMenuListener(PopupMenuListener arg0)
Parameters
AddSeparator()
public void AddSeparator()
GetComponentIndex(Component)
public int GetComponentIndex(Component arg0)
Parameters
Returns
Insert(Component, int)
public void Insert(Component arg0, int arg1)
Parameters
Insert(Action, int)
public void Insert(Action arg0, int arg1)
Parameters
IsBorderPainted()
public bool IsBorderPainted()
Returns
IsLightWeightPopupEnabled()
public bool IsLightWeightPopupEnabled()
Returns
IsPopupTrigger(MouseEvent)
public bool IsPopupTrigger(MouseEvent arg0)
Parameters
arg0
MouseEvent
Returns
MenuSelectionChanged(bool)
public void MenuSelectionChanged(bool arg0)
Parameters
Pack()
public void Pack()
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
RemoveMenuKeyListener(MenuKeyListener)
public void RemoveMenuKeyListener(MenuKeyListener arg0)
Parameters
RemovePopupMenuListener(PopupMenuListener)
public void RemovePopupMenuListener(PopupMenuListener arg0)
Parameters
SetBorderPainted(bool)
public void SetBorderPainted(bool arg0)
Parameters
SetLightWeightPopupEnabled(bool)
public void SetLightWeightPopupEnabled(bool arg0)
Parameters
SetPopupSize(Dimension)
public void SetPopupSize(Dimension arg0)
Parameters
SetPopupSize(int, int)
public void SetPopupSize(int arg0, int arg1)
Parameters
SetSelected(Component)
public void SetSelected(Component arg0)
Parameters
SetUI(PopupMenuUI)
public void SetUI(PopupMenuUI arg0)
Parameters
arg0
PopupMenuUI
Show(Component, int, int)
public void Show(Component arg0, int arg1, int arg2)
Parameters
Operators
implicit operator Accessible(JPopupMenu)
Converter from JPopupMenu to Accessible
public static implicit operator Accessible(JPopupMenu t)
Parameters
Returns
implicit operator MenuElement(JPopupMenu)
Converter from JPopupMenu to MenuElement
public static implicit operator MenuElement(JPopupMenu t)