public interface JavaClientApi
Modifier and Type | Method and Description |
---|---|
Object |
execute(String identifier)
Executes a script or executable specified by the given identifier.
|
Object |
execute(String identifier,
Map<String,Object> params)
Executes a script or executable specified by the given identifier.
|
void |
reload()
Reloads the current url of the belonging browser app.
|
Object execute(@NotNull String identifier)
JC_API.execute('script:SCRIPT_UID'); // uid of the script existing in the project JC_API.execute('class:NAME_OF_PUBLIC_EXECUTABLE'); // name of public hotspot related to anexecutable class
JC_API.execute('class:FULL_QUALIFIED_CLASSNAME'); // FQN of anexecutable class
identifier
- the identifier of the executable ("script:SCRIPT_UID" or "class:NAME_OF_PUBLIC_EXECUTABLE" or "class:FULL_QUALIFIED_CLASSNAME")Object execute(@NotNull String identifier, @NotNull Map<String,Object> params)
JC_API.execute('class:FSAPI-Caller', {'param1':value1}, function(value){ alert(value); }); JC_API.execute('script:fsapiscript', {'param1':value1}, function(value){ alert(value); });
identifier
- the identifier of the executable ("script:SCRIPT_UID" or "class:NAME_OF_PUBLIC_EXECUTABLE" or "class:FULL_QUALIFIED_CLASSNAME")params
- the parameter map which should be passed to the executablevoid reload()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500