Table of Contents

Class KeyAdapter

Namespace
Java.Awt.EventNs
Assembly
MASES.JNet.dll
public class KeyAdapter : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
KeyAdapter
Implements
Derived
Inherited Members
Extension Methods

Constructors

KeyAdapter()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public KeyAdapter()

KeyAdapter(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 KeyAdapter(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

OnKeyPressed

public Action<KeyEvent> OnKeyPressed { get; set; }

Property Value

Action<KeyEvent>

Remarks

If OnKeyPressed has a value it takes precedence over corresponding class method

OnKeyReleased

public Action<KeyEvent> OnKeyReleased { get; set; }

Property Value

Action<KeyEvent>

Remarks

If OnKeyReleased has a value it takes precedence over corresponding class method

OnKeyTyped

public Action<KeyEvent> OnKeyTyped { get; set; }

Property Value

Action<KeyEvent>

Remarks

If OnKeyTyped has a value it takes precedence over corresponding class method

Methods

InitializeHandlers()

Handlers initializer for KeyAdapter

protected virtual void InitializeHandlers()

KeyPressed(KeyEvent)

public virtual void KeyPressed(KeyEvent arg0)

Parameters

arg0 KeyEvent

KeyEvent

KeyReleased(KeyEvent)

public virtual void KeyReleased(KeyEvent arg0)

Parameters

arg0 KeyEvent

KeyEvent

KeyTyped(KeyEvent)

public virtual void KeyTyped(KeyEvent arg0)

Parameters

arg0 KeyEvent

KeyEvent