Class AppConsole.ConsoleTextPane

All Implemented Interfaces:
KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, Scrollable
Enclosing class:
AppConsole

class AppConsole.ConsoleTextPane extends JTextPane implements KeyListener
  • Field Details

    • enterListener

      private EnterListener enterListener
    • checking

      boolean checking
    • pageUpBuffer

      String pageUpBuffer
    • checkingCommand

      boolean checkingCommand
    • checkTimer

      private Timer checkTimer
  • Constructor Details

    • ConsoleTextPane

      ConsoleTextPane(AppConsole appConsole)
  • Method Details

    • getCommandString

      public String getCommandString()
    • setPrompt

      public void setPrompt()
    • appendNewline

      public void appendNewline()
    • outputError

      public void outputError(String strError)
    • outputErrorForeground

      public void outputErrorForeground(String strError)
    • outputEcho

      public void outputEcho(String strEcho)
    • outputStatus

      public void outputStatus(String strStatus)
    • enterPressed

      public void enterPressed()
    • clearContent

      public void clearContent(String text)
    • keyTyped

      public void keyTyped(KeyEvent e)
      Custom key event processing for command 0 implementation. Captures key up and key down strokes to call command history and redefines the same events with control down to allow caret vertical shift.
      Specified by:
      keyTyped in interface KeyListener
      See Also:
    • keyPressed

      public void keyPressed(KeyEvent e)
      Specified by:
      keyPressed in interface KeyListener
    • keyReleased

      public void keyReleased(KeyEvent e)
      Specified by:
      keyReleased in interface KeyListener
    • processKey

      protected void processKey(KeyEvent ke)
    • checkCommand

      void checkCommand()