|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Fs4Bridge
Api object which will be injected as javascript proxy object in the browser apps of FirstSpirit (e.g. InlinePreview or BrowserApps in JavaClient).
The created javascript object will be injected into the current web page with name "FS4BRIDGE" as an attribute of the window object. (Usage: window.FS4BRIDGE)
Attention: This part of the API isn't released yet and may change during the ramp up time.
Method Summary | |
---|---|
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. |
Method Detail |
---|
Object execute(@NotNull String identifier)
FS4BRIDGE.execute('script:SCRIPT_UID'); // uid of the script existing in the project FS4BRIDGE.execute('class:NAME_OF_PUBLIC_EXECUTABLE'); // name of public hotspot related to anexecutable class
FS4BRIDGE.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)
FS4BRIDGE.execute('class:FSAPI-Caller', {'param1':value1}, function(value){ alert(value); }); FS4BRIDGE.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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |