1 18 19 package org.apache.jmeter.control.gui; 20 21 import org.apache.jmeter.control.OnceOnlyController; 22 import org.apache.jmeter.testelement.TestElement; 23 import org.apache.jorphan.gui.layout.VerticalLayout; 24 25 28 public class OnceOnlyControllerGui extends AbstractControllerGui 29 { 30 public OnceOnlyControllerGui() 31 { 32 init(); 33 } 34 35 public TestElement createTestElement() 36 { 37 OnceOnlyController oc = new OnceOnlyController(); 38 modifyTestElement(oc); 39 return oc; 40 } 41 42 46 public void modifyTestElement(TestElement oc) 47 { 48 configureTestElement(oc); 49 } 50 51 public String getLabelResource() 52 { 53 return "once_only_controller_title"; 54 } 55 56 private void init() 57 { 58 setLayout( 59 new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP)); 60 setBorder(makeBorder()); 61 add(makeTitlePanel()); 62 } 63 } 64 | Popular Tags |