1 | TestElement createTestElement() {↵ | | 1 | TestElement createTestElement() {↵
|
2 | InterleaveControl ic = new InterleaveControl();↵ | | 2 | RandomController ic = new RandomController();↵
|
3 | modifyTestElement(ic);↵ | | 3 | modifyTestElement(ic);↵
|
4 | return ic;↵ | | 4 | return ic;↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /**↵
|
7 | * Modifies a given TestElement to mirror the data in the gui components.↵ | | 7 | * Modifies a given TestElement to mirror the data in the gui components.↵
|
8 | * ↵ | | 8 | * ↵
|
9 | * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)↵ | | 9 | * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)↵
|
10 | */↵ | | 10 | */↵
|
11 | public void modifyTestElement(TestElement ic) {↵ | | 11 | public void modifyTestElement(TestElement ic) {↵
|
12 | configureTestElement(ic);↵ | | 12 | configureTestElement(ic);↵
|
13 | if (style.isSelected()) {↵ | | 13 | if (style.isSelected()) {↵
|
14 | ((InterleaveControl) ic).setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS);↵ | | 14 | ((RandomController) ic).setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS);↵
|
15 | } else {↵ | | 15 | } else {↵
|
16 | ((InterleaveControl) ic).setStyle(InterleaveControl.USE_SUB_CONTROLLERS);↵ | | 16 | ((RandomController) ic).setStyle(InterleaveControl.USE_SUB_CONTROLLERS);↵
|
17 | }↵ | | 17 | }↵
|
18 | }↵ | | 18 | }↵
|
|
19 | /**↵ | | 19 | /**↵
|
20 | * Implements JMeterGUIComponent.clearGui↵ | | 20 | * Implements JMeterGUIComponent.clearGui↵
|
21 | */↵ | | 21 | */↵
|
22 | public void clearGui() {↵ | | 22 | public void clearGui() {↵
|
23 | super.clearGui(); ↵ | | 23 | super.clearGui(); ↵
|
24 | style.setSelected(false);↵ | | 24 | style.setSelected(false);↵
|
25 | | | 25 |
|