KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Header: /home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/control/gui/TransactionControllerGui.java,v 1.3 2004/03/05 01:32:37 sebb Exp $
2
/*
3  * Copyright 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.TransactionController;
23 import org.apache.jmeter.control.gui.AbstractControllerGui;
24 import org.apache.jmeter.testelement.TestElement;
25
26 /**
27  * A Transaction controller component.
28  *
29  * @version $Revision: 1.3 $ on $Date: 2004/03/05 01:32:37 $
30  */

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

36     public TransactionControllerGui()
37     {
38         init();
39     }
40
41     /* Implements JMeterGUIComponent.createTestElement() */
42     public TestElement createTestElement()
43     {
44         TransactionController lc = new TransactionController();
45         configureTestElement(lc);
46         return lc;
47     }
48
49     /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
50     public void modifyTestElement(TestElement el)
51     {
52         configureTestElement(el);
53     }
54
55     public String JavaDoc getLabelResource()
56     {
57         return "transaction_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