changeset 7605:ed872c81796d

[Accessibility] Indetermine progress bar to report 0% (same as native)
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Thu, 31 Jul 2014 10:53:26 -0700
parents 01d4bbc663bf
children 101968b1eef0
files modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java	Thu Jul 31 10:17:22 2014 -0700
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java	Thu Jul 31 10:53:26 2014 -0700
@@ -1190,6 +1190,7 @@
 
     double get_Value() {
         if (isDisposed()) return 0;
+        if (Boolean.TRUE.equals(getAttribute(INDETERMINATE))) return 0;
         Double value = (Double)getAttribute(VALUE);
         return value != null ? value : 0;
     }
@@ -1202,8 +1203,8 @@
         AccessibleRole role = (AccessibleRole)getAttribute(ROLE);
         if (role != null) {
             switch (role) {
-                case SLIDER:
-                case SCROLL_BAR: return false;
+                case SLIDER: return false;
+                case SCROLL_BAR: return true;
                 case TEXT_FIELD:
                 case TEXT_AREA:
                 case COMBO_BOX: return Boolean.FALSE.equals(getAttribute(EDITABLE));