Class ContextWindow

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.htmlunit.corejs.javascript.tools.debugger.ContextWindow
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

class ContextWindow extends JPanel implements ActionListener
Panel that shows information about the context.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serializable magic number.
      See Also:
    • debugGui

      private SwingGui debugGui
      The debugger GUI.
    • context

      JComboBox<String> context
      The combo box that holds the stack frames.
    • toolTips

      List<String> toolTips
      Tool tips for the stack frames.
    • tabs

      private JTabbedPane tabs
      Tabbed pane for "this" and "locals".
    • tabs2

      private JTabbedPane tabs2
      Tabbed pane for "watch" and "evaluate".
    • thisTable

      private MyTreeTable thisTable
      The table showing the "this" object.
    • localsTable

      private MyTreeTable localsTable
      The table showing the stack local variables.
    • tableModel

      private MyTableModel tableModel
      The evaluator's table model.
    • evaluator

      private Evaluator evaluator
      The script evaluator table.
    • cmdLine

      private EvalTextArea cmdLine
      The script evaluation text area.
    • split

      JSplitPane split
      The split pane.
    • enabled

      private boolean enabled
      Whether the ContextWindow is enabled.
  • Constructor Details

    • ContextWindow

      public ContextWindow(SwingGui debugGui)
      Creates a new ContextWindow.
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Enables or disables the component.
      Overrides:
      setEnabled in class JComponent
    • disableUpdate

      public void disableUpdate()
      Disables updating of the component.
    • enableUpdate

      public void enableUpdate()
      Enables updating of the component.
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Performs an action.
      Specified by:
      actionPerformed in interface ActionListener