]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed compilation error
authormichaelvogt <michael@vaadin.com>
Thu, 4 Apr 2013 20:01:47 +0000 (23:01 +0300)
committermichaelvogt <michael@vaadin.com>
Fri, 5 Apr 2013 13:42:22 +0000 (16:42 +0300)
Change-Id: Iec392464f23846c2631be8d1f150292e678861f0

client/src/com/vaadin/client/ui/AriaHelper.java
client/src/com/vaadin/client/ui/VTree.java

index 9f7210f86c7c4700fe6512de174da25ed2085920..450b25c8da45b6d88284e50b823ca4fde4634677 100644 (file)
@@ -63,12 +63,13 @@ public class AriaHelper {
     }
 
     /**
-     * Removes a binding to a caption from the provided Widget.
+     * Removes a binding to a caption added with bindCaption() from the provided
+     * Widget.
      * 
      * @param widget
      *            Widget, that was bound to a caption before
      */
-    public static void clearCaption(Widget widget) {
+    private static void clearCaption(Widget widget) {
         Roles.getTextboxRole()
                 .removeAriaLabelledbyProperty(widget.getElement());
     }
index 20b3050a5d9a6573aa86d92360c0446c6bc20b5c..9ad8e5be7cdc0ea07f4c843d9f8e26575177e1f8 100644 (file)
@@ -2215,7 +2215,7 @@ public class VTree extends FocusElementPanel implements VHasDropHandler,
 
     @Override
     public void clearAriaCaption() {
-        AriaHelper.clearCaption(body);
+        AriaHelper.bindCaption(body, null);
     }
 
 }