Table of Contents

Class CLREventData

Namespace
MASES.JCOBridge.C2JBridge
Assembly
C2JBridge.dll

Base class for event information. Extend this to manage event associated data

public class CLREventData
Inheritance
CLREventData
Derived
Inherited Members
Extension Methods

Examples

The following is the implementation of the Java EventObject class.
It will be used as typeparam of CLRListenerEventArgs<TDataClass> for the event CLRActionListener

public class CLREventObjectData : CLREventData
{
   public CLREventObjectData(object actionData)
        : base(actionData)
   {
   }

   public dynamic Source { get { return DynEventData.getSource(); } }

   public override string ToString()
   {
       return DynEventData.toString();
   }
}

Constructors

CLREventData(IJavaObject)

Initialize a new instance of CLREventData

public CLREventData(IJavaObject reference)

Parameters

reference IJavaObject

Information about event information, it is automatically set from the sub-system.

Properties

DynEventData

Dynamic accessor to the information about event information received from the JVM

public dynamic DynEventData { get; }

Property Value

dynamic

DynExtraData

A dynamic array of extra information ordered with the same order of the caller, or null if HasExtraData is false

public dynamic DynExtraData { get; }

Property Value

dynamic

EventData

Accessor to the information about event information received from the JVM

public virtual object EventData { get; }

Property Value

object

ExtraData

An array of extra information ordered with the same order of the caller, or null if HasExtraData is false

public IJavaArray ExtraData { get; }

Property Value

IJavaArray

ExtraDataLength

Returns how many object contains extra information.

public int ExtraDataLength { get; }

Property Value

int

HasExtraData

True if the event has other objects associated

public bool HasExtraData { get; }

Property Value

bool

this[int]

Returns the indexed data

public object this[int index] { get; }

Parameters

index int

The index to get

Property Value

object

The object at index