Class SwingGui

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, GuiCallback

public class SwingGui extends JFrame implements GuiCallback
GUI for the Rhino debugger.
See Also:
  • Constructor Details

    • SwingGui

      public SwingGui(Dim dim, String title)
      Creates a new SwingGui.
  • Method Details

    • getMenubar

      public org.mozilla.javascript.tools.debugger.Menubar getMenubar()
      Returns the Menubar of this debugger frame.
    • setExitAction

      public void setExitAction(Runnable r)
      Sets the Runnable that will be run when the "Exit" menu item is chosen.
    • getConsole

      public org.mozilla.javascript.tools.debugger.JSInternalConsole getConsole()
      Returns the debugger console component.
    • setVisible

      public void setVisible(boolean b)
      Sets the visibility of the debugger GUI.
      Overrides:
      setVisible in class Window
    • updateSourceText

      public void updateSourceText(Dim.SourceInfo sourceInfo)
      Called when the source text for a script has been updated.
      Specified by:
      updateSourceText in interface GuiCallback
    • enterInterrupt

      public void enterInterrupt(Dim.StackFrame lastFrame, String threadTitle, String alertMessage)
      Called when the interrupt loop has been entered.
      Specified by:
      enterInterrupt in interface GuiCallback
    • isGuiEventThread

      public boolean isGuiEventThread()
      Returns whether the current thread is the GUI event thread.
      Specified by:
      isGuiEventThread in interface GuiCallback
    • dispatchNextGuiEvent

      public void dispatchNextGuiEvent() throws InterruptedException
      Processes the next GUI event.
      Specified by:
      dispatchNextGuiEvent in interface GuiCallback
      Throws:
      InterruptedException
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Performs an action from the menu or toolbar.