JVMBridgeListener Class |
Namespace: MASES.JCOBridge.C2JBridge
The JVMBridgeListener type exposes the following members.
Name | Description | |
---|---|---|
JVMBridgeListener |
Initialize a new instance of CLRListener |
Name | Description | |
---|---|---|
AutoInit |
Set to to externally initialize this JVMBridgeListener instance using InitializeListener(IJVMBridgeBase) | |
ClassName |
Java class name to be instantiated
(Overrides JVMBridgeBaseClassName.) | |
DynInstance |
The dynamic accessor to Instance (Inherited from JVMBridgeBase.) | |
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
(Inherited from JVMBridgeBase.) | |
IsAbstract | if the ClassName is an abstract class, i.e. cannot be created an instance
(Inherited from JVMBridgeBase.) | |
IsCloseable | if the ClassName implements Closeable
(Overrides JVMBridgeBaseIsCloseable.) | |
IsInterface | if the ClassName is an interface, i.e. does not have any public constructor
(Inherited from JVMBridgeBase.) | |
IsListener | if the ClassName follows the listener pattern of JCOBridge: the ClassName extends a JCListener or implements IJCListener
(Overrides JVMBridgeBaseIsListener.) | |
IsStatic | if the ClassName is a static class, i.e. does not have any public constructor
(Overrides JVMBridgeBaseIsStatic.) | |
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. (Overrides JVMBridgeBaseDispose.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from JVMBridgeBase.) | |
ExecuteT(T) |
Executes the code
(Inherited from JVMBridgeBase.) | |
ExecuteT(T) |
Executes the code
(Inherited from JVMBridgeBaseTClass.) | |
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 JVMBridgeBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IExecute(String, Object) |
Executes an instance method
(Inherited from JVMBridgeBase.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NewTNewClass(String, Object) | Obsolete.
Executes an instance method
(Inherited from JVMBridgeBase.) | |
ToString | Returns a string that represents the current object. (Inherited from JVMBridgeBase.) |
Name | Description | |
---|---|---|
ConvertTReturn |
Converts a generic object
(Defined by JCOBridgeExtensions.) | |
ToNative |
Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions.) |
public sealed class CLRActionListener : JVMBridgeListener { 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# } }