Class KeyListener
Listener for https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/event/KeyListener.html. Extends https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeListener.htm, implements IKeyListener
public class KeyListener : EventListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IEventListener, IKeyListener, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<JVMBridgeListener>JVMBridgeListenerKeyListener
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeListener.Dispose()JVMBridgeListener.AutoInitJVMBridgeListener.IsBridgeStaticJVMBridgeListener.IsBridgeCloseableJVMBridgeListener.IsBridgeListenerJVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])JVMBridgeBase<JVMBridgeListener>.DynBridgeClazzJVMBridgeBase<JVMBridgeListener>.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.IsBridgeInterfaceJVMBridgeBase.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
OnKeyPressed
public Action<KeyEvent> OnKeyPressed { get; set; }
Property Value
Remarks
If OnKeyPressed has a value it takes precedence over corresponding class method
OnKeyReleased
public Action<KeyEvent> OnKeyReleased { get; set; }
Property Value
Remarks
If OnKeyReleased has a value it takes precedence over corresponding class method
OnKeyTyped
public Action<KeyEvent> OnKeyTyped { get; set; }
Property Value
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
KeyReleased(KeyEvent)
public virtual void KeyReleased(KeyEvent arg0)
Parameters
KeyTyped(KeyEvent)
public virtual void KeyTyped(KeyEvent arg0)