Class ViewToolBarBuilder.JScriptToolBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants
Enclosing class:
ViewToolBarBuilder

public class ViewToolBarBuilder.JScriptToolBar extends JToolBar
Class used to indicate on the toolbar whether a script is being recorded.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • recordScriptButton

      private JButton recordScriptButton
      The recording button.
  • Constructor Details

    • JScriptToolBar

      public JScriptToolBar()
  • Method Details

    • setRecordButton

      public void setRecordButton(JButton recordButton)
      Sets the button used to start/stop recording.
      Parameters:
      recordButton - the button to use
    • setRecording

      public void setRecording(boolean isRecording)
      Sets whether a script is being recorded and changes the appearance of the button accordingly.
      Parameters:
      isRecording - true if a script is being recorded, false otherwise