Class AbstractMultiScriptEditor<K>

All Implemented Interfaces:
Locatable, ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
KeystrokeScriptEditor, TimerScriptEditor

public abstract class AbstractMultiScriptEditor<K> extends GlobalScriptEditor.ScriptConfigPanel implements Locatable
See Also:
  • Field Details

    • context

      protected final DesignerContext context
    • splitPane

      protected JSplitPane splitPane
    • scriptArea

      protected com.inductiveautomation.ignition.designer.gui.tools.PythonTextArea scriptArea
    • list

      protected JList<K> list
    • scripts

      protected Map<K,String> scripts
    • listModel

      protected MapListModel listModel
    • currentEdit

      protected K currentEdit
  • Constructor Details

    • AbstractMultiScriptEditor

      protected AbstractMultiScriptEditor(DesignerContext context)
  • Method Details

    • initComponents

      protected void initComponents()
    • getScriptEditorPanel

      protected JComponent getScriptEditorPanel()
    • createScriptEditor

      protected com.inductiveautomation.ignition.designer.gui.tools.PythonTextArea createScriptEditor()
    • getScript

      protected String getScript()
    • setScript

      protected void setScript(String script)
    • getDefaultNewScript

      protected String getDefaultNewScript()
    • configureListCell

      protected void configureListCell(JLabel cell, K item, boolean isSelected)
    • isReconfigureActionPresent

      protected abstract boolean isReconfigureActionPresent()
      Should item's keys be reconfigurable?
    • getNoun

      protected abstract String getNoun()
      Return of name of the thing being configured, "timer" for "timer scripts", etc."
    • getListTitle

      @Deprecated protected String getListTitle()
      Deprecated.
      Unused.
      Return the title for the list
    • getNewIcon

      protected abstract Icon getNewIcon()
    • getDeleteIcon

      protected abstract Icon getDeleteIcon()
    • getReconfigureIcon

      protected abstract Icon getReconfigureIcon()
    • doNew

      protected void doNew()
    • toString

      protected String toString(K key)
    • getCappedNoun

      protected String getCappedNoun()
    • chooseNewKey

      protected abstract K chooseNewKey()
    • doDelete

      protected void doDelete()
    • reconfigureKey

      protected abstract K reconfigureKey(K key)
    • doReconfigure

      protected void doReconfigure()
    • getScripts

      protected abstract Map<K,String> getScripts(ScriptConfig sc)
    • storeScripts

      protected abstract void storeScripts(ScriptConfig sc, Map<K,String> scripts)
    • init

      public boolean init(ScriptConfig sc)
      Specified by:
      init in class GlobalScriptEditor.ScriptConfigPanel
    • doSave

      public void doSave(ScriptConfig sc) throws PropertyVetoException
      Specified by:
      doSave in class GlobalScriptEditor.ScriptConfigPanel
      Throws:
      PropertyVetoException
    • getScript

      protected String getScript(K key)
    • installHints

      public void installHints(Map<String,List<ScriptFunctionHint>> hints)
      Specified by:
      installHints in class GlobalScriptEditor.ScriptConfigPanel
    • toLocatableValue

      protected abstract String toLocatableValue(K key)
    • locate

      public void locate(Location location)
      Specified by:
      locate in interface Locatable