KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jmeter > protocol > http > modifier > gui > AnchorModifierGui


1 // $Header: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/AnchorModifierGui.java,v 1.10 2004/03/05 01:38:17 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.protocol.http.modifier.gui;
20
21 import java.awt.BorderLayout JavaDoc;
22
23 import org.apache.jmeter.processor.gui.AbstractPreProcessorGui;
24 import org.apache.jmeter.protocol.http.modifier.AnchorModifier;
25 import org.apache.jmeter.testelement.TestElement;
26
27 /**
28  * @version $Revision: 1.10 $ on $Date: 2004/03/05 01:38:17 $
29  */

30 public class AnchorModifierGui extends AbstractPreProcessorGui
31 {
32     public AnchorModifierGui()
33     {
34         init();
35     }
36
37     public String JavaDoc getLabelResource()
38     {
39         return "anchor_modifier_title";
40     }
41
42     public TestElement createTestElement()
43     {
44         AnchorModifier modifier = new AnchorModifier();
45         modifyTestElement(modifier);
46         return modifier;
47     }
48
49     /**
50      * Modifies a given TestElement to mirror the data in the gui components.
51      * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
52      */

53     public void modifyTestElement(TestElement modifier)
54     {
55         configureTestElement(modifier);
56     }
57
58     private void init()
59     {
60         setLayout(new BorderLayout JavaDoc());
61         setBorder(makeBorder());
62
63         add(makeTitlePanel(), BorderLayout.NORTH);
64     }
65 }
66
Popular Tags