View | Details | Raw Unified | Return to bug 40077
Collapse All | Expand All

(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java (+2 lines)
Lines 140-145 Link Here
140
	public void clear() {
140
	public void clear() {
141
		super.clear();
141
		super.clear();
142
		getImages.setSelected(false);
142
		getImages.setSelected(false);
143
		isMon.setSelected(false);
143
		urlConfigGui.clear();
144
		urlConfigGui.clear();
145
		embeddedRE.setText(""); // $NON-NLS-1$
144
	}
146
	}
145
}
147
}
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/URLRewritingModifierGui.java (+13 lines)
Lines 104-109 Link Here
104
        rewritingModifier.setShouldCache((shouldCache.isSelected()));
104
        rewritingModifier.setShouldCache((shouldCache.isSelected()));
105
	}
105
	}
106
106
107
    /**
108
     * Implements JMeterGUIComponent.clear
109
     */
110
    public void clear() {
111
        super.clear();
112
        
113
        argumentName.setText(""); //$NON-NLS-1$
114
        pathExt.setSelected(false);
115
        pathExtNoEquals.setSelected(false);
116
        pathExtNoQuestionmark.setSelected(false);
117
        shouldCache.setSelected(false);
118
    }    
119
107
	public void configure(TestElement el) {
120
	public void configure(TestElement el) {
108
		URLRewritingModifier rewritingModifier = ((URLRewritingModifier) el);
121
		URLRewritingModifier rewritingModifier = ((URLRewritingModifier) el);
109
        argumentName.setText(rewritingModifier.getArgumentName());
122
        argumentName.setText(rewritingModifier.getArgumentName());
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/UserParameterModifierGui.java (+8 lines)
Lines 68-73 Link Here
68
		this.configureTestElement(mod);
68
		this.configureTestElement(mod);
69
		((UserParameterModifier) mod).setXmlUri(fileNameField.getText());
69
		((UserParameterModifier) mod).setXmlUri(fileNameField.getText());
70
	}
70
	}
71
    /**
72
     * Implements JMeterGUIComponent.clear
73
     */
74
    public void clear() {
75
        super.clear();
76
        
77
        fileNameField.setText("users.xml"); //$NON-NLS-1$
78
    }    
71
79
72
	public void updateGui() {
80
	public void updateGui() {
73
	}
81
	}
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/http/org/apache/jmeter/protocol/http/modifier/gui/ParamModifierGui.java (+14 lines)
Lines 106-111 Link Here
106
			mask.setSuffix(_suffix.getText());
106
			mask.setSuffix(_suffix.getText());
107
		}
107
		}
108
	}
108
	}
109
    
110
    /**
111
     * Implements JMeterGUIComponent.clear
112
     */
113
    public void clear() {
114
        super.clear();
115
        
116
        _fieldName.setText(""); //$NON-NLS-1$
117
        _prefix.setText(""); //$NON-NLS-1$
118
        _lowerBound.setText("0"); //$NON-NLS-1$
119
        _upperBound.setText("10"); //$NON-NLS-1$
120
        _increment.setText("1"); //$NON-NLS-1$
121
        _suffix.setText(""); //$NON-NLS-1$        
122
    }    
109
123
110
	public void focusGained(FocusEvent evt) {
124
	public void focusGained(FocusEvent evt) {
111
	}
125
	}
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BSFSamplerGui.java (+12 lines)
Lines 78-83 Link Here
78
		te.setProperty(BSFSampler.PARAMETERS, parameters.getText());
79
		te.setProperty(BSFSampler.PARAMETERS, parameters.getText());
79
		te.setProperty(BSFSampler.SCRIPT, scriptField.getText());
80
		te.setProperty(BSFSampler.SCRIPT, scriptField.getText());
80
	}
81
	}
82
    
83
    /**
84
     * Implements JMeterGUIComponent.clear
85
     */
86
    public void clear() {
87
        super.clear();
88
        
89
        scriptField.setText(""); //$NON-NLS-1$
90
        langField.setText(""); //$NON-NLS-1$
91
        filename.setText(""); //$NON-NLS-1$
92
        parameters.setText(""); //$NON-NLS-1$
93
    }    
81
94
82
	public String getLabelResource() {
95
	public String getLabelResource() {
83
		return "bsf_sampler_title";
96
		return "bsf_sampler_title";
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/modifiers/gui/UserParametersGui.java (+11 lines)
Lines 129-134 Link Here
129
		super.configureTestElement(params);
129
		super.configureTestElement(params);
130
	}
130
	}
131
131
132
    /**
133
     * Implements JMeterGUIComponent.clear
134
     */
135
    public void clear() {
136
        super.clear();
137
        
138
        initTableModel();
139
        paramTable.setModel(tableModel);
140
        perIterationCheck.setSelected(false);
141
    }    
142
132
	private void init() {
143
	private void init() {
133
		setBorder(makeBorder());
144
		setBorder(makeBorder());
134
		setLayout(new BorderLayout());
145
		setLayout(new BorderLayout());
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/modifiers/gui/CounterConfigGui.java (+14 lines)
Lines 73-78 Link Here
73
		}
74
		}
74
		super.configureTestElement(c);
75
		super.configureTestElement(c);
75
	}
76
	}
77
    
78
    /**
79
     * Implements JMeterGUIComponent.clear
80
     */
81
    public void clear() {
82
        super.clear();
83
        
84
        startField.setText(""); //$NON-NLS-1$
85
        incrField.setText(""); //$NON-NLS-1$
86
        endField.setText(""); //$NON-NLS-1$
87
        varNameField.setText(""); //$NON-NLS-1$
88
        formatField.setText(""); //$NON-NLS-1$
89
        perUserField.setSelected(false);
90
    }
76
91
77
	public void configure(TestElement element) {
92
	public void configure(TestElement element) {
78
		super.configure(element);
93
		super.configure(element);
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/sampler/gui/TestActionGui.java (+16 lines)
Lines 128-133 Link Here
128
		ta.setDuration(duration);
129
		ta.setDuration(duration);
129
	}
130
	}
130
131
132
    /**
133
     * Implements JMeterGUIComponent.clear
134
     */
135
    public void clear() {
136
        super.clear();
137
        
138
        targetBox.setSelectedIndex(0);
139
        durationField.setText(""); //$NON-NLS-1$
140
        pauseButton.setSelected(true);
141
        stopButton.setSelected(false);
142
        action = TestAction.PAUSE;
143
        target = TestAction.THREAD;
144
        duration = 0;
145
        
146
    }    
147
131
	private void init() {
148
	private void init() {
132
		setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));
149
		setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));
133
		setBorder(makeBorder());
150
		setBorder(makeBorder());
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/HTMLAssertionGui.java (+20 lines)
Lines 138-143 Link Here
138
		((HTMLAssertion) inElement).setFilename(filePanel.getFilename());
138
		((HTMLAssertion) inElement).setFilename(filePanel.getFilename());
139
	}
139
	}
140
140
141
    /**
142
     * Implements JMeterGUIComponent.clear
143
     */
144
    public void clear() {
145
        super.clear();
146
147
        docTypeBox.setSelectedIndex(0);
148
        htmlRadioButton.setSelected(true);
149
        xhtmlRadioButton.setSelected(false);
150
        xmlRadioButton.setSelected(false);
151
        errorThresholdField.setText("0"); //$NON-NLS-1$
152
        warningThresholdField.setText("0"); //$NON-NLS-1$
153
        filePanel.setFilename(""); //$NON-NLS-1$
154
        errorsOnly.setSelected(false);
155
    }    
156
141
	/**
157
	/**
142
	 * Configures the associated test element.
158
	 * Configures the associated test element.
143
	 * 
159
	 * 
Lines 161-166 Link Here
161
			warningThresholdField.setEnabled(false);
177
			warningThresholdField.setEnabled(false);
162
			warningThresholdField.setEditable(false);
178
			warningThresholdField.setEditable(false);
163
		}
179
		}
180
		else {
181
			warningThresholdField.setEnabled(true);
182
			warningThresholdField.setEditable(true);
183
		}
164
		filePanel.setFilename(lAssertion.getFilename());
184
		filePanel.setFilename(lAssertion.getFilename());
165
	}
185
	}
166
186
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XPathAssertionGui.java (+12 lines)
Lines 116-119 Link Here
116
			assertion.setXPathString(xpath.getXPath());
116
			assertion.setXPathString(xpath.getXPath());
117
		}
117
		}
118
	}
118
	}
119
    
120
    /**
121
     * Implements JMeterGUIComponent.clear
122
     */
123
    public void clear() {
124
        super.clear();
125
        
126
        xpath.setXPath("/"); //$NON-NLS-1$
127
        xpath.setNegated(false);
128
        
129
        xml.setDefaultValues();
130
    }    
119
}
131
}
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/DurationAssertionGui.java (+9 lines)
Lines 68-73 Link Here
68
		el.setProperty(DurationAssertion.DURATION_KEY,duration.getText());
68
		el.setProperty(DurationAssertion.DURATION_KEY,duration.getText());
69
	}
69
	}
70
70
71
    /**
72
     * Implements JMeterGUIComponent.clear
73
     */
74
    public void clear() {
75
        super.clear();
76
        
77
        duration.setText(""); //$NON-NLS-1$
78
    }    
79
71
	public void configure(TestElement el) {
80
	public void configure(TestElement el) {
72
		super.configure(el);
81
		super.configure(el);
73
		duration.setText(el.getPropertyAsString(DurationAssertion.DURATION_KEY));
82
		duration.setText(el.getPropertyAsString(DurationAssertion.DURATION_KEY));
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java (-2 / +10 lines)
Lines 68-73 Link Here
68
	 */
68
	 */
69
	public XPathPanel(boolean isDoubleBuffered) {
69
	public XPathPanel(boolean isDoubleBuffered) {
70
		super(isDoubleBuffered);
70
		super(isDoubleBuffered);
71
        init();
71
	}
72
	}
72
73
73
	/**
74
	/**
Lines 75-80 Link Here
75
	 */
76
	 */
76
	public XPathPanel(LayoutManager layout) {
77
	public XPathPanel(LayoutManager layout) {
77
		super(layout);
78
		super(layout);
79
        init();
78
	}
80
	}
79
81
80
	/**
82
	/**
Lines 83-89 Link Here
83
	 */
85
	 */
84
	public XPathPanel(LayoutManager layout, boolean isDoubleBuffered) {
86
	public XPathPanel(LayoutManager layout, boolean isDoubleBuffered) {
85
		super(layout, isDoubleBuffered);
87
		super(layout, isDoubleBuffered);
86
88
		init();
87
	}
89
	}
88
90
89
	private void init() {
91
	private void init() {
Lines 99-106 Link Here
99
		vbox.add(getNegatedCheckBox());
101
		vbox.add(getNegatedCheckBox());
100
102
101
		add(vbox);
103
		add(vbox);
104
        
105
        setDefaultValues();
102
	}
106
	}
103
107
108
    public void setDefaultValues() {
109
        setXPath("/"); //$NON-NLS-1$
110
        setNegated(false);
111
    }
112
104
	/**
113
	/**
105
	 * Get the XPath String
114
	 * Get the XPath String
106
	 * 
115
	 * 
Lines 170-176 Link Here
170
	public JTextField getXPathTextField() {
179
	public JTextField getXPathTextField() {
171
		if (xpath == null) {
180
		if (xpath == null) {
172
			xpath = new JTextField(50);
181
			xpath = new JTextField(50);
173
			xpath.setText("/"); //$NON-NLS-1$
174
		}
182
		}
175
		return xpath;
183
		return xpath;
176
	}
184
	}
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XMLConfPanel.java (+8 lines)
Lines 51-58 Link Here
51
		add(getNamespace());
51
		add(getNamespace());
52
		add(getValidate());
52
		add(getValidate());
53
		add(getWhitespace());
53
		add(getWhitespace());
54
		setDefaultValues();
54
	}
55
	}
55
56
57
    public void setDefaultValues() {
58
        setWhitespace(false);
59
        setValidate(false);
60
        setTolerant(false);
61
        setNamespace(false);
62
    }
63
56
	/**
64
	/**
57
	 * @return Returns the namespace.
65
	 * @return Returns the namespace.
58
	 */
66
	 */
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/MD5HexAssertionGUI.java (+9 lines)
Lines 102-105 Link Here
102
		}
102
		}
103
		((MD5HexAssertion) element).setAllowedMD5Hex(md5HexString);
103
		((MD5HexAssertion) element).setAllowedMD5Hex(md5HexString);
104
	}
104
	}
105
    
106
    /**
107
     * Implements JMeterGUIComponent.clear
108
     */
109
    public void clear() {
110
        super.clear();
111
        
112
        md5HexInput.setText(""); //$NON-NLS-1$
113
    }    
105
}
114
}
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/SizeAssertionGui.java (+16 lines)
Lines 84-89 Link Here
84
		((SizeAssertion) el).setAllowedSize(assertionSize);
84
		((SizeAssertion) el).setAllowedSize(assertionSize);
85
		((SizeAssertion) el).setCompOper(getState());
85
		((SizeAssertion) el).setCompOper(getState());
86
	}
86
	}
87
    
88
    /**
89
     * Implements JMeterGUIComponent.clear
90
     */
91
    public void clear() {
92
        super.clear();
93
        
94
        size.setText(""); //$NON-NLS-1$
95
        equalButton.setSelected(true);
96
        notequalButton.setSelected(false);
97
        greaterthanButton.setSelected(false);
98
        lessthanButton.setSelected(false);
99
        greaterthanequalButton.setSelected(false);
100
        lessthanequalButton.setSelected(false);
101
        execState = SizeAssertion.EQUAL;
102
    }    
87
103
88
	public void configure(TestElement el) {
104
	public void configure(TestElement el) {
89
		super.configure(el);
105
		super.configure(el);
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/AssertionGui.java (+20 lines)
Lines 160-166 Link Here
160
			}
160
			}
161
		}
161
		}
162
	}
162
	}
163
    
164
    /**
165
     * Implements JMeterGUIComponent.clear
166
     */
167
    public void clear() {
168
        super.clear();
169
        
170
        tableModel.clearData();
163
171
172
        responseStringButton.setSelected(true);
173
        urlButton.setSelected(false);
174
        responseCodeButton.setSelected(false);
175
        responseMessageButton.setSelected(false);
176
        assumeSuccess.setSelected(false);
177
        
178
        containsBox.setSelected(true);
179
        matchesBox.setSelected(false);
180
        equalsBox.setSelected(false);
181
        notBox.setSelected(false);
182
    }    
183
164
	/**
184
	/**
165
	 * A newly created component can be initialized with the contents of a Test
185
	 * A newly created component can be initialized with the contents of a Test
166
	 * Element object by calling this method. The component is responsible for
186
	 * Element object by calling this method. The component is responsible for
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/assertions/gui/XMLSchemaAssertionGUI.java (+9 lines)
Lines 81-86 Link Here
81
		((XMLSchemaAssertion) inElement).setXsdFileName(xmlSchema.getText());
81
		((XMLSchemaAssertion) inElement).setXsdFileName(xmlSchema.getText());
82
	}
82
	}
83
83
84
    /**
85
     * Implements JMeterGUIComponent.clear
86
     */
87
    public void clear() {
88
        super.clear();
89
        
90
        xmlSchema.setText(""); //$NON-NLS-1$
91
    }    
92
84
	/**
93
	/**
85
	 * Configures the GUI from the associated test element.
94
	 * Configures the GUI from the associated test element.
86
	 * 
95
	 * 
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/extractor/gui/XPathExtractorGui.java (+12 lines)
Lines 88-93 Link Here
88
        }
88
        }
89
    }
89
    }
90
90
91
    /**
92
     * Implements JMeterGUIComponent.clear
93
     */
94
    public void clear() {
95
        super.clear();
96
        
97
        xpathQueryField.setText(""); // $NON-NLS-1$
98
        defaultField.setText(""); // $NON-NLS-1$
99
        refNameField.setText(""); // $NON-NLS-1$
100
        tolerant.setSelected(false);
101
    }
102
91
	private void init() {
103
	private void init() {
92
		setLayout(new BorderLayout());
104
		setLayout(new BorderLayout());
93
		setBorder(makeBorder());
105
		setBorder(makeBorder());
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/components/org/apache/jmeter/extractor/gui/RegexExtractorGui.java (+17 lines)
Lines 108-113 Link Here
108
			regex.setMatchNumber(matchNumberField.getText());
108
			regex.setMatchNumber(matchNumberField.getText());
109
		}
109
		}
110
	}
110
	}
111
    
112
    /**
113
     * Implements JMeterGUIComponent.clear
114
     */
115
    public void clear() {
116
        super.clear();
117
        
118
        useBody.setSelected(true);
119
        useHeaders.setSelected(false);
120
        useURL.setSelected(false);
121
        
122
        regexField.setText(""); //$NON-NLS-1$
123
        templateField.setText(""); //$NON-NLS-1$
124
        defaultField.setText(""); //$NON-NLS-1$
125
        refNameField.setText(""); //$NON-NLS-1$
126
        matchNumberField.setText(""); //$NON-NLS-1$
127
    }    
111
128
112
	private void init() {
129
	private void init() {
113
		setLayout(new BorderLayout());
130
		setLayout(new BorderLayout());
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/reporters/gui/ResultActionGui.java (+9 lines)
Lines 76-81 Link Here
76
		((OnErrorTestElement) te).setErrorAction(errorPanel.getOnErrorSetting());
76
		((OnErrorTestElement) te).setErrorAction(errorPanel.getOnErrorSetting());
77
	}
77
	}
78
78
79
    /**
80
     * Implements JMeterGUIComponent.clear
81
     */
82
    public void clear() {
83
        super.clear();
84
        
85
        errorPanel.configure(OnErrorTestElement.ON_ERROR_CONTINUE);
86
    }
87
    
79
	private void init() {
88
	private void init() {
80
		setLayout(new BorderLayout());
89
		setLayout(new BorderLayout());
81
		setBorder(makeBorder());
90
		setBorder(makeBorder());
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/reporters/gui/ResultSaverGui.java (+10 lines)
Lines 85-90 Link Here
85
		te.setProperty(ResultSaver.ERRORS_ONLY, errorsOnly.isSelected());
85
		te.setProperty(ResultSaver.ERRORS_ONLY, errorsOnly.isSelected());
86
	}
86
	}
87
87
88
    /**
89
     * Implements JMeterGUIComponent.clear
90
     */
91
    public void clear() {
92
        super.clear();
93
        
94
        filename.setText(""); //$NON-NLS-1$
95
        errorsOnly.setSelected(false);
96
    }
97
88
	private void init() {
98
	private void init() {
89
		setLayout(new BorderLayout());
99
		setLayout(new BorderLayout());
90
		setBorder(makeBorder());
100
		setBorder(makeBorder());
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2 official/src/core/org/apache/jmeter/config/gui/LoginConfigGui.java (+9 lines)
Lines 107-112 Link Here
107
		String passwordString = new String(password.getPassword());
108
		String passwordString = new String(password.getPassword());
108
		element.setProperty(new StringProperty(ConfigTestElement.PASSWORD, passwordString));
109
		element.setProperty(new StringProperty(ConfigTestElement.PASSWORD, passwordString));
109
	}
110
	}
111
    /**
112
     * Implements JMeterGUIComponent.clear
113
     */
114
    public void clear() {
115
        super.clear();
116
        
117
        username.setText(""); //$NON-NLS-1$
118
        password.setText(""); //$NON-NLS-1$
119
    }    
110
120
111
	/**
121
	/**
112
	 * Initialize the components and layout of this component.
122
	 * Initialize the components and layout of this component.

Return to bug 40077