Class JMeterToolBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, LocaleChangeListener

public class JMeterToolBar extends JToolBar implements LocaleChangeListener
The JMeter main toolbar class
See Also:
  • Field Details

  • Constructor Details

    • JMeterToolBar

      public JMeterToolBar()
  • Method Details

    • createToolbar

      public static JMeterToolBar createToolbar(boolean visible)
      Create the default JMeter toolbar
      Parameters:
      visible - Flag whether toolbar should be visible
      Returns:
      the newly created JMeterToolBar
    • addImpl

      protected void addImpl(Component comp, Object constraints, int index)
      Overrides:
      addImpl in class JToolBar
    • localeChanged

      public void localeChanged(LocaleChangeEvent event)
      Specified by:
      localeChanged in interface LocaleChangeListener
    • initButtonsState

      public void initButtonsState()
      Init the state of buttons
    • setLocalTestStarted

      public void setLocalTestStarted(boolean started)
      Change state of buttons on local test
      Parameters:
      started - Flag whether local test is started
    • setRemoteTestStarted

      public void setRemoteTestStarted(boolean started)
      Change state of buttons on remote test
      Parameters:
      started - Flag whether the test is started
    • updateUndoRedoIcons

      public void updateUndoRedoIcons(boolean canUndo, boolean canRedo)
      Change state of buttons after undo or redo
      Parameters:
      canUndo - Flag whether the button corresponding to ActionNames.UNDO should be enabled
      canRedo - Flag whether the button corresponding to ActionNames.REDO should be enabled