sourceforge 1386454 now supporting return values in event handlers. also added visio example of this
This commit is contained in:
@@ -74,10 +74,11 @@ public class ExcelEventTest extends InvocationProxy {
|
||||
}
|
||||
|
||||
/**
|
||||
* override the invoke method to loga ll the events
|
||||
* override the invoke method to log all the events
|
||||
*/
|
||||
public void invoke(String methodName, Variant targetParameter[]) {
|
||||
public Variant invoke(String methodName, Variant targetParameter[]) {
|
||||
System.out.println("Received event from Windows program" + methodName);
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -68,8 +68,9 @@ public class WordEventTest extends InvocationProxy {
|
||||
/**
|
||||
* override the invoke method to loga ll the events
|
||||
*/
|
||||
public void invoke(String methodName, Variant targetParameter[]) {
|
||||
public Variant invoke(String methodName, Variant targetParameter[]) {
|
||||
System.out.println("Received event from Windows program" + methodName);
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user