[ooo-build-commit] Branch 'ooo/OOO320' - accessibility/bridge

Jan Holesovsky kendy at kemper.freedesktop.org
Fri Oct 9 08:07:16 PDT 2009


 accessibility/bridge/org/openoffice/java/accessibility/Tree.java |   16 ++++++++--
 1 file changed, 13 insertions(+), 3 deletions(-)

New commits:
commit d6ea3ae285a3a774d196732cf75c2eabe6b3d1f8
Author: Ivo Hinkelmann <ihi at openoffice.org>
Date:   Mon Oct 5 12:26:49 2009 +0000

    CWS-TOOLING: integrate CWS ab76_a11y_OOO320

diff --git a/accessibility/bridge/org/openoffice/java/accessibility/Tree.java b/accessibility/bridge/org/openoffice/java/accessibility/Tree.java
index 274a491..0f9dd5c 100644
--- a/accessibility/bridge/org/openoffice/java/accessibility/Tree.java
+++ b/accessibility/bridge/org/openoffice/java/accessibility/Tree.java
@@ -46,7 +46,7 @@ public class Tree extends DescendantManager implements javax.accessibility.Acces
     protected void setActiveDescendant(javax.accessibility.Accessible descendant) {
         javax.accessibility.Accessible oldAD = activeDescendant;
         activeDescendant = descendant;
-        firePropertyChange(AccessibleContext.ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY,
+        firePropertyChange(AccessibleContext.ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY,	
             oldAD, descendant);
     }
     
@@ -93,7 +93,7 @@ public class Tree extends DescendantManager implements javax.accessibility.Acces
         } catch (com.sun.star.lang.IllegalArgumentException e) {
         }
     }
-    
+
     /**
     * Update the proxy objects appropriatly on property change events
     */
@@ -117,7 +117,17 @@ public class Tree extends DescendantManager implements javax.accessibility.Acces
                         add(event.NewValue);
                     }
                     break;
-                    
+
+                case AccessibleEventId.LISTBOX_ENTRY_EXPANDED:
+                    firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
+                        AccessibleState.COLLAPSED, AccessibleState.EXPANDED);
+                    break;
+
+                case AccessibleEventId.LISTBOX_ENTRY_COLLAPSED:
+                    firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY,
+                        AccessibleState.EXPANDED, AccessibleState.COLLAPSED);
+                    break;
+
                 default:
                     super.notifyEvent(event);
             }


More information about the ooo-build-commit mailing list