01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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, WITHOUT
13: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14: * License for the specific language governing permissions and limitations
15: * under the License.
16: *
17: */
18:
19: package org.apache.jmeter.config.gui;
20:
21: import java.awt.BorderLayout;
22: import java.util.Collection;
23:
24: import javax.swing.JLabel;
25: import javax.swing.JPopupMenu;
26:
27: import org.apache.jmeter.config.ConfigTestElement;
28: import org.apache.jmeter.gui.AbstractJMeterGuiComponent;
29: import org.apache.jmeter.testelement.TestElement;
30: import org.apache.jmeter.util.JMeterUtils;
31:
32: /**
33: * Default config gui for Configuration Element.
34: */
35: public class ObsoleteGui extends AbstractJMeterGuiComponent {
36:
37: private JLabel obsoleteMessage = new JLabel(JMeterUtils
38: .getResString("obsolete_test_element")); // $NON-NLS-1$
39:
40: public ObsoleteGui() {
41: init();
42: }
43:
44: private void init() {
45: setLayout(new BorderLayout(0, 10));
46: setBorder(makeBorder());
47: //add(makeTitlePanel(), BorderLayout.NORTH);
48: add(obsoleteMessage, BorderLayout.WEST);
49: }
50:
51: public String getLabelResource() {
52: return "obsolete_test_element"; // $NON-NLS-1$
53: }
54:
55: public TestElement createTestElement() {
56: return new ConfigTestElement();
57: }
58:
59: public void modifyTestElement(TestElement element) {
60: }
61:
62: public JPopupMenu createPopupMenu() {
63: return null;
64: }
65:
66: public Collection getMenuCategories() {
67: return null;
68: }
69:
70: }
|