Table of Contents

Class KeyListener

Namespace
Java.Awt.EventNs
Assembly
MASES.JNet.dll
public class KeyListener : EventListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IEventListener, IKeyListener, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
KeyListener
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeListener.Dispose()
JVMBridgeListener.AutoInit
JVMBridgeListener.IsBridgeStatic
JVMBridgeListener.IsBridgeCloseable
JVMBridgeListener.IsBridgeListener
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()
JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])
JVMBridgeBase<JVMBridgeListener>.DynBridgeClazz
JVMBridgeBase<JVMBridgeListener>.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.IsBridgeInterface
JVMBridgeBase.IsBridgeAbstract
Extension Methods

Remarks

Remember to Dispose the object otherwise there is a resource leak, the object contains a reference to the the corresponding JVM object

Constructors

KeyListener()

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

public KeyListener()

Properties

BridgeClassName

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 KeyListener

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