CLRListener Class |
Note: This API is now obsolete.
Namespace: MASES.JCOBridge.C2JBridge
The CLRListener type exposes the following members.
Name | Description | |
---|---|---|
CLRListener |
Initialize a new instance of CLRListener |
Name | Description | |
---|---|---|
AutoInit | ||
ClassName |
Java class name to be instantiated
| |
DynInstance |
The dynamic accessor to Instance | |
DynListener | Obsolete.
Local reference for JVM Listener, it shall be used as input for all Java methods which need the interface e.g. addActionListener
| |
Instance |
The IJavaObject instance
| |
IsAbstract | if the ClassName is an abstract class, i.e. cannot be created an instance
| |
IsCloseable | if the ClassName implements Closeable
| |
IsInterface | if the ClassName is an interface, i.e. does not have any public constructor
| |
IsListener | ||
IsStatic | if the ClassName is a static class, i.e. does not have any public constructor
| |
JniClass | Obsolete.
Represents the class implemented in JVM context
| |
Listener | Obsolete.
Local reference for JVM JCListener instance, it shall be used as input for all Java methods which need the interface e.g. addActionListener
|
Name | Description | |
---|---|---|
AddEventHandler(String, EventHandler) |
Adds an handler to manage events from JVM
| |
AddEventHandlerTDataClass(String, EventHandlerCLRListenerEventArgsTDataClass) |
Adds an handler to manage events from JVM
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
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.) |
Name | Description | |
---|---|---|
CastTObject |
Casts the input object implemeneting IJVMBridgeBase into TObject (Defined by JCOBridgeExtensions.) | |
ConvertTReturn |
Converts a generic object
(Defined by JCOBridgeExtensions.) | |
InitializeListener |
Request the initialization of the Listener from the JVM. The listener is a new class which inherits from CLRListener (Defined by JCOBridgeExtensions.) | |
ReleaseListener |
Release a IJVMBridgeBase from the JVM
(Defined by JCOBridgeExtensions.) | |
ToNative | Overloaded.
Converts a ICLRListener input to an object manageable from the JVM
(Defined by JCOBridgeExtensions.) | |
ToNative | Overloaded.
Converts a IJVMBridgeBase input to an object manageable from the JVM
(Defined by JCOBridgeExtensions.) | |
ToNative | Overloaded.
Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions.) |
public sealed class CLRActionListener : CLRListener { public override string ClassName { get { return "org.mases.jcobridge.specialized.JCActionListener"; } } // the full name of class, in the JVM counterpart, of the Java class implementing the event public CLRActionListener(EventHandler<CLRListenerEventArgs<CLRActionEventData>> handler) // the handler with the expected type { AddEventHandler("actionPerformed", handler); // allocate the event handler associated to the action the Java interface to be managed in C# } }