Interface EventScriptReplyRenderer.ApplyActions
- Enclosing class:
EventScriptReplyRenderer
public static interface EventScriptReplyRenderer.ApplyActions
Write-backs to the live tab, each invoked on the EDT when the user clicks Apply.
-
Method Summary
Modifier and TypeMethodDescriptionvoidreplaceScript(String body) Replaces the script editor's buffer with the accepted function body.voidsetScriptEnabled(boolean enabled) Sets the tab's enabled checkbox.booleansetTriggerConfig(com.inductiveautomation.ignition.common.gson.JsonObject config) Writes an accepted trigger configuration to the live panel.
-
Method Details
-
replaceScript
Replaces the script editor's buffer with the accepted function body.- Parameters:
body- the accepted function body.
-
setScriptEnabled
void setScriptEnabled(boolean enabled) Sets the tab's enabled checkbox. Only called on a tab whose snapshot carried a non-null enabled state.- Parameters:
enabled- the accepted enabled state.
-
setTriggerConfig
boolean setTriggerConfig(com.inductiveautomation.ignition.common.gson.JsonObject config) Writes an accepted trigger configuration to the live panel. Only called with a configuration the tab'sTriggerConfigSupportvalidated when the reply rendered.- Parameters:
config- the accepted configuration.- Returns:
- whether the write succeeded; on
falsethe renderer reports the failure on the card and applies nothing else from the suggestion.
-