Class ScheduledScriptTab

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceEditor<com.inductiveautomation.ignition.common.script.ScheduledScript>
com.inductiveautomation.ignition.designer.scripteditor.workspace.EventScriptTab<com.inductiveautomation.ignition.common.script.ScheduledScript>
com.inductiveautomation.ignition.designer.scripteditor.workspace.ScheduledScriptTab
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ScheduledScriptTab extends EventScriptTab<com.inductiveautomation.ignition.common.script.ScheduledScript>
Represents a tab for editing scheduled script configurations in a resource editor.
See Also:
  • Constructor Details

  • Method Details

    • getTabIcon

      public Icon getTabIcon()
      Overrides:
      getTabIcon in class ResourceEditor<com.inductiveautomation.ignition.common.script.ScheduledScript>
    • deserialize

      protected com.inductiveautomation.ignition.common.script.ScheduledScript deserialize(Resource resource) throws Exception
      Description copied from class: ResourceEditor
      Deserialize a project resource into the editing object type for this editor. Default implementation simply calls this.deserialize(resource.getData().orElseThrow().getBytes()). Override this method if your resource does not use the default data.bin file.
      Overrides:
      deserialize in class ResourceEditor<com.inductiveautomation.ignition.common.script.ScheduledScript>
      Throws:
      Exception
    • serializeResource

      protected void serializeResource(ResourceBuilder builder, com.inductiveautomation.ignition.common.script.ScheduledScript config) throws Exception
      Description copied from class: ResourceEditor
      Serialize the object and put the serialized file(s) and attribute(s) into the project resource builder. Default implementation is:
      builder.putData(serialize(object));
      Implementations don't need to bother setting the project's resourcePath, projectName, or applicationScope; those will be set automatically.
      Overrides:
      serializeResource in class ResourceEditor<com.inductiveautomation.ignition.common.script.ScheduledScript>
      Throws:
      Exception
    • getObjectForSave

      protected com.inductiveautomation.ignition.common.script.ScheduledScript getObjectForSave() throws Exception
      Description copied from class: ResourceEditor
      Return the object that should be saved to represent this resource in the ProjectResource. Will be serialized using an XMLSerializer. Override ResourceEditor.serialize(Object) to serialize in a different manner.
      Specified by:
      getObjectForSave in class ResourceEditor<com.inductiveautomation.ignition.common.script.ScheduledScript>
      Throws:
      Exception
    • getScriptHints

      protected Supplier<PackageTreeNode> getScriptHints()
      Description copied from class: EventScriptTab
      Defaults to Gateway hints.
      Overrides:
      getScriptHints in class EventScriptTab<com.inductiveautomation.ignition.common.script.ScheduledScript>
    • getFunctionDescriptor

      protected com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor getFunctionDescriptor()
      Description copied from class: EventScriptTab
      Returns the descriptor for the extension function associated with this script editor.
      Specified by:
      getFunctionDescriptor in class EventScriptTab<com.inductiveautomation.ignition.common.script.ScheduledScript>
    • triggerConfigSupport

      protected TriggerConfigSupport<ScheduleTriggerConfig> triggerConfigSupport()
      Description copied from class: EventScriptTab
      This tab's trigger-configuration contract with the assistant, or null — the default, for tabs that have no trigger — to leave the assistant rewriting the script only.

      Called when the assist popup opens and again on every submit, never during ResourceEditor.init(T), so an override may safely read scope and the tab's config panels. Return a fresh TriggerConfigSupport each time rather than a cached field.

      Overrides:
      triggerConfigSupport in class EventScriptTab<com.inductiveautomation.ignition.common.script.ScheduledScript>
    • init

      protected void init(com.inductiveautomation.ignition.common.script.ScheduledScript config)
      Specified by:
      init in class ResourceEditor<com.inductiveautomation.ignition.common.script.ScheduledScript>