Author: sebb Date: Sat May 9 01:31:18 2009 New Revision: 773150 URL: http://svn.apache.org/viewvc?rev=773150&view=rev Log: Bug 41209 - JLabeled* and ToolTips
Modified: jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextArea.java jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java jakarta/jmeter/trunk/xdocs/changes.xml Modified: jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java?rev=773150&r1=773149&r2=773150&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java (original) +++ jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledChoice.java Sat May 9 01:31:18 2009 @@ -221,6 +221,24 @@ return mLabel.getText(); } + /** + * Registers the text to display in a tool tip. + * The text displays when the cursor lingers over the component. + * @param text the string to display; if the text is null, + * the tool tip is turned off for this component + */ + public void setToolTipText(String text) { + choiceList.setToolTipText(text); + } + + /** + * Returns the tooltip string that has been set with setToolTipText + * @return the text of the tool tip + */ + public String getToolTipText() { + return choiceList.getToolTipText(); + } + /** * Adds a change listener, that will be notified when the text in the text * field is changed. The ChangeEvent that will be passed to registered Modified: jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextArea.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextArea.java?rev=773150&r1=773149&r2=773150&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextArea.java (original) +++ jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextArea.java Sat May 9 01:31:18 2009 @@ -179,6 +179,24 @@ } /** + * Registers the text to display in a tool tip. + * The text displays when the cursor lingers over the component. + * @param text the string to display; if the text is null, + * the tool tip is turned off for this component + */ + public void setToolTipText(String text) { + mTextArea.setToolTipText(text); + } + + /** + * Returns the tooltip string that has been set with setToolTipText + * @return the text of the tool tip + */ + public String getToolTipText() { + return mTextArea.getToolTipText(); + } + + /** * Adds a change listener, that will be notified when the text in the text * field is changed. The ChangeEvent that will be passed to registered * listeners will contain this object as the source, allowing the new text Modified: jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java?rev=773150&r1=773149&r2=773150&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java (original) +++ jakarta/jmeter/trunk/src/jorphan/org/apache/jorphan/gui/JLabeledTextField.java Sat May 9 01:31:18 2009 @@ -176,6 +176,24 @@ } /** + * Registers the text to display in a tool tip. + * The text displays when the cursor lingers over the component. + * @param text the string to display; if the text is null, + * the tool tip is turned off for this component + */ + public void setToolTipText(String text) { + mTextField.setToolTipText(text); + } + + /** + * Returns the tooltip string that has been set with setToolTipText + * @return the text of the tool tip + */ + public String getToolTipText() { + return mTextField.getToolTipText(); + } + + /** * Adds a change listener, that will be notified when the text in the text * field is changed. The ChangeEvent that will be passed to registered * listeners will contain this object as the source, allowing the new text Modified: jakarta/jmeter/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=773150&r1=773149&r2=773150&view=diff ============================================================================== --- jakarta/jmeter/trunk/xdocs/changes.xml (original) +++ jakarta/jmeter/trunk/xdocs/changes.xml Sat May 9 01:31:18 2009 @@ -259,6 +259,7 @@ <li>HTTP Samplers now support connection and request timeouts (requires Java 1.5 for Java Http sampler)</li> <li>Bug 47132 - Brazilian Portuguese translations</li> <li>Bug 46900 - Polish translations</li> +<li> Bug 41209 - JLabeled* and ToolTips</li> </ul> <h3>Non-functional changes</h3> --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org