Table of Contents

Class FocusListener

Namespace
Java.Awt.EventNs
Assembly
MASES.JNet.dll
public class FocusListener : EventListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IEventListener, IFocusListener, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
FocusListener
Implements
Derived
Inherited Members
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

FocusListener()

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

public FocusListener()

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

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

OnFocusGained

public Action<FocusEvent> OnFocusGained { get; set; }

Property Value

Action<FocusEvent>

Remarks

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

OnFocusLost

public Action<FocusEvent> OnFocusLost { get; set; }

Property Value

Action<FocusEvent>

Remarks

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

Methods

FocusGained(FocusEvent)

public virtual void FocusGained(FocusEvent arg0)

Parameters

arg0 FocusEvent

FocusEvent

FocusLost(FocusEvent)

public virtual void FocusLost(FocusEvent arg0)

Parameters

arg0 FocusEvent

FocusEvent

InitializeHandlers()

Handlers initializer for FocusListener

protected virtual void InitializeHandlers()