java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.scripteditor.component.ExpressionEditor
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener
Direct Known Subclasses:
BindingExpressionEditor, ReportExpressionEditor, TagExpressionEditor, TagExpressionEditor

public class ExpressionEditor extends JPanel implements DocumentListener
See Also:
  • Field Details

    • expressionTA

      protected com.jidesoft.editor.CodeEditor expressionTA
  • Constructor Details

  • Method Details

    • getCodeEditor

      public com.jidesoft.editor.CodeEditor getCodeEditor()
    • enableInlineMenuDisplay

      protected void enableInlineMenuDisplay()
      Turns on context menu display when "ctrl-space" is typed in the editor.
    • getMenu

      protected ExpressionEditorContextMenu getMenu()
    • showMenu

      public void showMenu()
    • setExpression

      public void setExpression(@Nullable String value)
    • getExpression

      public String getExpression()
    • setChanged

      public void setChanged(boolean value)
    • isChanged

      public boolean isChanged()
    • addContextMenu

      public void addContextMenu(JMenu menu)
    • addToolbarAction

      public void addToolbarAction(Action action)
    • addToolbarComponent

      public void addToolbarComponent(JComponent comp)
    • addAction

      public void addAction(Action a)
      Adds an action to the context menu and toolbar.
    • initComponents

      protected void initComponents(ExpressionEditor.Mode mode)
    • dispose

      public void dispose()
      Cleans up the editor to make sure it is garbage collected.
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • changedUpdate

      public void changedUpdate(DocumentEvent e)
      Specified by:
      changedUpdate in interface DocumentListener
    • insertUpdate

      public void insertUpdate(DocumentEvent e)
      Specified by:
      insertUpdate in interface DocumentListener
    • removeUpdate

      public void removeUpdate(DocumentEvent e)
      Specified by:
      removeUpdate in interface DocumentListener