Methods
Java-beans methods can be invoked with the callMethod methods of the CobolGUIJavaBean class.
 
public Object callMethod(String methodName, Object[] parameters)
Invokes a java-bean method
Parameters:
methodName - Name of the java-bean method to be invoked
parameters - Array of Objects representing the paramenters of the method to be invoked. Use null if method has no parameters.
Returns:
The object returned by methodName.
 
public Object callMethod(String methodName, String signature, Object[] parameters)
Invokes a java-bean method with a specific signature
Parameters:
methodName - Name of the java-bean method to be invoked
signature - Signature of the method to be invoked
parameters - Array of Objects representing the paramenters of the method to be invoked. To call a method with no parameters, use callMethod(String methodName, null).
Returns:
The object returned by methodName.
 
public Object callMethod(String methodName[, Object parameter1][, Object parameter2][, Object parameter3][, Object parameter4][, Object parameter5])
Invokes a java-bean method
Parameters:
methodName - Name of the java-bean method to be invoked
parameters (1 to 5)- Object representing the parameters of the method to be invoked. You can use up to 5 parameters.
Returns:
The object returned by methodName.