KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jmeter > control > gui > LogicControllerGui


1 // $Header: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/control/gui/LogicControllerGui.java,v 1.9 2004/03/05 01:34:05 sebb Exp $
2
/*
3  * Copyright 2001-2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17 */

18
19 package org.apache.jmeter.control.gui;
20 import java.awt.BorderLayout JavaDoc;
21
22 import org.apache.jmeter.control.GenericController;
23 import org.apache.jmeter.testelement.TestElement;
24
25 /**
26  * A generic controller component.
27  *
28  * @version $Revision: 1.9 $ on $Date: 2004/03/05 01:34:05 $
29  */

30 public class LogicControllerGui extends AbstractControllerGui
31 {
32     /**
33      * Create a new LogicControllerGui instance.
34      */

35     public LogicControllerGui()
36     {
37         init();
38     }
39
40     /* Implements JMeterGUIComponent.createTestElement() */
41     public TestElement createTestElement()
42     {
43         GenericController lc = new GenericController();
44         configureTestElement(lc);
45         return lc;
46     }
47
48     /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
49     public void modifyTestElement(TestElement el)
50     {
51         configureTestElement(el);
52     }
53
54
55     public String JavaDoc getLabelResource()
56     {
57         return "logic_controller_title";
58     }
59
60     /**
61      * Initialize the GUI components and layout for this component.
62      */

63     private void init()
64     {
65         setLayout(new BorderLayout JavaDoc());
66         setBorder(makeBorder());
67         add(makeTitlePanel(), BorderLayout.NORTH);
68     }
69 }
70
Popular Tags