CLRListener Class |
Namespace: MASES.JCOBridge.C2JBridge
The CLRListener type exposes the following members.
Name | Description | |
---|---|---|
CLRListener |
Initialize a new instance of CLRListener |
Name | Description | |
---|---|---|
DynListener |
Local reference for JVM Listener, it shall be used as input for all Java methods which need the interface e.g. addActionListener
|
Name | Description | |
---|---|---|
AddEventHandlerTDataClass |
Adds an handler to manage events from JVM
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
public sealed class CLRActionListener : CLRListener { public CLRActionListener(EventHandler<CLRListenerEventArgs<CLRActionEventData>> handler) // the handler with the expected type : base("org.mases.jcobridge.specialized.JCActionListener") // the full name of class, in the JVM counterpart, of the Java class implementing the event { AddEventHandler("actionPerformed", handler); // allocate the event handler associated to the action the Java interface to be managed in C# } }