APIs for Java Developers
Go to APIs for .NET Developers (coming soon)Interface INEventWithResultListener
- 
 public interface INEventWithResultListenerAn interface used for creating classes that will listen to any .NET events.Classes implementing this interface can be provided as argument to event subscribing method on instance of NObject class. When .NET event is raised all associated instances of classes implementing INEventListener will be informed by calling 
 eventOccurredmethod with list of arguments passed by the event invocation.Receiving Events ArgumentsAll arguments passed by event invocation are either converted to JAVA primitive types (String, Integer, Float..) 
 or passed as NObject instances for reference-type arguments.Subscribing EventsEvents can be subscribed by calling NObject.addEventListener(String, INEventWithResultListener)method.
 Event listener can be an instance ofNEventListenerclass or any other class inheriting fromNEventListener,
 class implementingINEventWithResultListenerinterface or anonymous class of NEventListener itself; for examplebutton4.addEventListener("Click", new NEventListener() { public void eventOccurred(Object[] arguments) { button4_Click((NObject)arguments[0],(NObject)arguments[1]); } });or by instance of class implementing INEventWithResultListenerinterfaceclass MyEventListener implements INEventListener { public void eventOccurred(Object[] arguments) { //my custom event handling code } } button4.addEventListener("Click", new MyEventListener());- Version:
- 1.0
 
- 
 
 - Method Summary- All Methods Instance Methods Abstract Methods - Modifier and Type - Method and Description - java.lang.Object- eventOccurred(java.lang.Object[] arguments)Method triggered for each subscribed .NET event occurrence.
 
- 
 
 - Method Detail- 
eventOccurredjava.lang.Object eventOccurred(java.lang.Object[] arguments) Method triggered for each subscribed .NET event occurrence.- Parameters:
- arguments– Parameters passed during event invocation. These can be any JAVA primitive types (integer, string, float..) or instances of NObject class for reference-type arguments
- Returns:
- result to be returned to .NET side as event call result
 
 
-