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 Type
    Method
    Description
    void
    Replaces the script editor's buffer with the accepted function body.
    void
    setScriptEnabled(boolean enabled)
    Sets the tab's enabled checkbox.
    boolean
    setTriggerConfig(com.inductiveautomation.ignition.common.gson.JsonObject config)
    Writes an accepted trigger configuration to the live panel.
  • Method Details

    • replaceScript

      void replaceScript(String body)
      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's TriggerConfigSupport validated when the reply rendered.
      Parameters:
      config - the accepted configuration.
      Returns:
      whether the write succeeded; on false the renderer reports the failure on the card and applies nothing else from the suggestion.