To be able to use the functions provided by the Java API for form handling, you must first declare the use of the relevant public part in your development component. Then you must access the required interfaces using a public helper class.
You must have set up your project as described in Setting Up Your Project.
...
1. Instantiate the helper class.
The API functions are provided in a set of interfaces, which are accessed using the helper class com.sap.caf.eu.gp.forms.api.InteractiveFormsFacade.
2. Once you instantiate the class, you can use the getter methods it provides to access any of the interfaces.
package com.sap.caf.eu.gp.api.test;
import com.sap.caf.eu.gp.forms.api.IFormProcessor; import com.sap.caf.eu.gp.forms.api.InteractiveFormsFacade;
public class APITest {
IFormProcessor formProcessor = InteractiveFormsFacade.getFormsProcessor(); ... } |