1 | public class LogicControllerGui extends AbstractControllerGui {↵ | | 1 | public class AnchorModifierGui extends Abstract↵
|
2 | /**↵ | | |
|
3 | * Create a new LogicControllerGui instance.↵ | | |
|
4 | */↵ | | |
|
5 | public LogicControllerGui() {↵ | | |
|
6 | init();↵ | | |
|
7 | }↵ | | |
|
|
8 | /* Implements JMeterGUIComponent.createTestElement() */↵ | | 2 | PreProcessorGui {↵
|
| | | 3 | public AnchorModifierGui() {↵
|
| | | 4 | init();↵
|
| | | 5 | }↵
|
|
| | | 6 | public String getLabelResource() {↵
|
| | | 7 | return "anchor_modifier_title"; //$NON-NLS-1$↵
|
| | | 8 | }↵
|
|
9 | public TestElement createTestElement() {↵ | | 9 | public TestElement createTestElement() {↵
|
10 | GenericController lc = new GenericController();↵ | | 10 | ↵
|
11 | configure↵ | | 11 | AnchorModifier modifier = new AnchorModifier();↵
|
12 | TestElement(lc);↵ | | 12 | modifyTestElement(modifier);↵
|
13 | return lc;↵ | | 13 | return modifier;↵
|
14 | }↵ | | 14 | }↵
|
|
15 | /* Implements ↵ | | 15 | /**↵
|
| | | 16 | * Modifies a given TestElement to mirror the data in the gui components.↵
|
| | | 17 | * ↵
|
16 | JMeterGUIComponent.modifyTestElement(TestElement)↵ | | 18 | * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)↵
|
17 | */↵ | | 19 | */↵
|
18 | public void modifyTestElement(TestElement el) {↵ | | 20 | public void modifyTestElement(TestElement modifier) {↵
|
19 | configureTestElement(el);↵ | | 21 | configureTestElement(↵
|
20 | }↵ | | |
|
|
21 | public String getLabelResource() {↵ | | |
|
22 | return "logic_controller_title"; // $NON-NLS-1$↵ | | |
|
23 | }↵ | | |
|
|
24 | /**↵ | | |
|
25 | * Initialize the GUI components and layout for this component.↵ | | |
|
26 | */↵ | | 22 | modifier);↵
|
| | | 23 | }↵
|
|
27 | private void init() {↵ | | 24 | private void init() {↵
|
28 | setLayout(new BorderLayout());↵ | | 25 | setLayout(new BorderLayout());↵
|
29 | setBorder(makeBorder());↵ | | 26 | setBorder(makeBorder());↵
|
|
30 | add(makeTitlePanel(), BorderLayout.NORTH);↵ | | 27 | add(makeTitlePanel(), BorderLayout.NORTH);↵
|
31 | | | 28 |
|