java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.gui.tools.ConsolePanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
JythonConsole

public abstract class ConsolePanel extends JPanel
See Also:
  • Field Details

  • Constructor Details

    • ConsolePanel

      public ConsolePanel()
  • Method Details

    • initConsole

      protected void initConsole()
    • printPrompt

      protected void printPrompt()
    • printInProgress

      protected void printInProgress()
      Print the in progress indicator (e.g. ...)
    • clear

      public void clear()
      Clear the console, reprinting the prompt and current command
    • reset

      public void reset()
      Re-init the console from scratch
    • enter

      protected void enter()
      Accepts the current line, stores it in history, and interprets it. If the command is complete, prints the prompt otherwise prints the in progress indicator.
    • newline

      protected void newline()
    • getTextAfterPrompt

      protected String getTextAfterPrompt()
      Gets the text from the current line; everything after the locked position.
    • getInProgressIndicator

      protected abstract String getInProgressIndicator()
    • getStdOut

      protected OutputStream getStdOut()
    • getStdErr

      protected OutputStream getStdErr()
    • interpret

      protected abstract boolean interpret(String message)
      Interprets a single line
      Parameters:
      message - the message to interpret
    • getPrompt

      protected abstract String getPrompt()
    • getBanner

      protected abstract String getBanner()
      The banner shown when the console starts up.
    • fireExecutionStarted

      protected void fireExecutionStarted()
    • fireExecutionFinished

      protected void fireExecutionFinished()
    • initKeyBindings

      protected void initKeyBindings(JTextComponent textPane)
    • interrupt

      public abstract void interrupt()