Table of Contents

Class JPopupMenu

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

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

arg0 String

String

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

public override string BridgeClassName { get; }

Property Value

string

Component

public Component Component { get; }

Property Value

Component

DefaultLightWeightPopupEnabled

public static bool DefaultLightWeightPopupEnabled { get; set; }

Property Value

bool

Invoker

public Component Invoker { get; set; }

Property Value

Component

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

Label

public String Label { get; set; }

Property Value

String

Margin

public Insets Margin { get; }

Property Value

Insets

MenuKeyListeners

public MenuKeyListener[] MenuKeyListeners { get; }

Property Value

MenuKeyListener[]

PopupMenuListeners

public PopupMenuListener[] PopupMenuListeners { get; }

Property Value

PopupMenuListener[]

SelectionModel

public SingleSelectionModel SelectionModel { get; set; }

Property Value

SingleSelectionModel

SubElements

public MenuElement[] SubElements { get; }

Property Value

MenuElement[]

Methods

Add(String)

public JMenuItem Add(String arg0)

Parameters

arg0 String

String

Returns

JMenuItem

JMenuItem

Add(Action)

public JMenuItem Add(Action arg0)

Parameters

arg0 Action

Action

Returns

JMenuItem

JMenuItem

Add(JMenuItem)

public JMenuItem Add(JMenuItem arg0)

Parameters

arg0 JMenuItem

JMenuItem

Returns

JMenuItem

JMenuItem

AddMenuKeyListener(MenuKeyListener)

public void AddMenuKeyListener(MenuKeyListener arg0)

Parameters

arg0 MenuKeyListener

MenuKeyListener

AddPopupMenuListener(PopupMenuListener)

public void AddPopupMenuListener(PopupMenuListener arg0)

Parameters

arg0 PopupMenuListener

PopupMenuListener

AddSeparator()

public void AddSeparator()

GetComponentIndex(Component)

public int GetComponentIndex(Component arg0)

Parameters

arg0 Component

Component

Returns

int

int

Insert(Component, int)

public void Insert(Component arg0, int arg1)

Parameters

arg0 Component

Component

arg1 int

int

Insert(Action, int)

public void Insert(Action arg0, int arg1)

Parameters

arg0 Action

Action

arg1 int

int

IsBorderPainted()

public bool IsBorderPainted()

Returns

bool

bool

IsLightWeightPopupEnabled()

public bool IsLightWeightPopupEnabled()

Returns

bool

bool

IsPopupTrigger(MouseEvent)

public bool IsPopupTrigger(MouseEvent arg0)

Parameters

arg0 MouseEvent

MouseEvent

Returns

bool

bool

MenuSelectionChanged(bool)

public void MenuSelectionChanged(bool arg0)

Parameters

arg0 bool

bool

Pack()

public void Pack()

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

RemoveMenuKeyListener(MenuKeyListener)

public void RemoveMenuKeyListener(MenuKeyListener arg0)

Parameters

arg0 MenuKeyListener

MenuKeyListener

RemovePopupMenuListener(PopupMenuListener)

public void RemovePopupMenuListener(PopupMenuListener arg0)

Parameters

arg0 PopupMenuListener

PopupMenuListener

SetBorderPainted(bool)

public void SetBorderPainted(bool arg0)

Parameters

arg0 bool

bool

SetLightWeightPopupEnabled(bool)

public void SetLightWeightPopupEnabled(bool arg0)

Parameters

arg0 bool

bool

SetPopupSize(Dimension)

public void SetPopupSize(Dimension arg0)

Parameters

arg0 Dimension

Dimension

SetPopupSize(int, int)

public void SetPopupSize(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

SetSelected(Component)

public void SetSelected(Component arg0)

Parameters

arg0 Component

Component

SetUI(PopupMenuUI)

public void SetUI(PopupMenuUI arg0)

Parameters

arg0 PopupMenuUI

PopupMenuUI

Show(Component, int, int)

public void Show(Component arg0, int arg1, int arg2)

Parameters

arg0 Component

Component

arg1 int

int

arg2 int

int

Operators

implicit operator Accessible(JPopupMenu)

Converter from JPopupMenu to Accessible

public static implicit operator Accessible(JPopupMenu t)

Parameters

t JPopupMenu

Returns

Accessible

implicit operator MenuElement(JPopupMenu)

Converter from JPopupMenu to MenuElement

public static implicit operator MenuElement(JPopupMenu t)

Parameters

t JPopupMenu

Returns

MenuElement