private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP)); setBorder(makeBorder()); add(makeTitlePanel()); style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers")); // $NON-NLS-1$ add(CheckBoxPanel.wrap(style)); accrossThreads = new JCheckBox(JMeterUtils.getResString("interleave_accross_threads")); // $NON-NLS-1$ add(CheckBoxPanel.wrap(accrossThreads)); } }
public InterleaveControlGui() { init(); }
@Override public TestElement createTestElement() { InterleaveControl ic = new InterleaveControl(); modifyTestElement(ic); return ic; }
/** * Modifies a given TestElement to mirror the data in the gui components. * * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement) */ @Override public void modifyTestElement(TestElement ic) { configureTestElement(ic); InterleaveControl controller = (InterleaveControl) ic; if (style.isSelected()) { controller.setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS); } else { controller.setStyle(InterleaveControl.USE_SUB_CONTROLLERS); } controller.setInterleaveAccrossThreads(accrossThreads.isSelected()); }