You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by rw...@apache.org on 2015/04/22 00:15:43 UTC

svn commit: r1675204 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/Container.java

Author: rwhitcomb
Date: Tue Apr 21 22:15:43 2015
New Revision: 1675204

URL: http://svn.apache.org/r1675204
Log:
Code cleanup:  Fix the Javadoc for Container.requestFocus to correctly document
the return value (it actually returns a boolean, not a Component reference, just
like the Component base class method).

Modified:
    pivot/trunk/wtk/src/org/apache/pivot/wtk/Container.java

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Container.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/Container.java?rev=1675204&r1=1675203&r2=1675204&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/Container.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/Container.java Tue Apr 21 22:15:43 2015
@@ -484,8 +484,8 @@ public abstract class Container extends
      * focusable, this requests that focus be set to the first focusable
      * descendant in this container.
      *
-     * @return The component that got the focus, or <tt>null</tt> if the focus
-     * request was denied
+     * @return <tt>true</tt> if the container or one of its descendants gained
+     * the focus or <tt>false</tt> if no component was found to gain the focus.
      */
     @Override
     public boolean requestFocus() {