diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-11-29 00:27:03 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-11-29 16:58:16 +0100 |
commit | 70626249cd247d9acdad417b8eaf252bae22c059 (patch) | |
tree | 2327193318672b583f12be99cdcaec5ef4d3830d /toolkit | |
parent | Prettify cppumaker output. (diff) | |
download | core-70626249cd247d9acdad417b8eaf252bae22c059.tar.gz core-70626249cd247d9acdad417b8eaf252bae22c059.zip |
API CHANGE a11y unpublishing and add/removeListener rename.
The a11y API has never really been picked up by tools vendors, let's
not tie ourselves up here for no good reason.
This unpublishes all css::accessibility, and dependend API.
With that, we can change the rather unfortunately-named add/
removeEventListener to be add/removeAccessibleEventListener, thus
not conflicting with the XComponent methods of the same name.
Change-Id: I595598c3a8e46415f80b2780f333333174865fe4
Diffstat (limited to 'toolkit')
3 files changed, 9 insertions, 9 deletions
diff --git a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleEventBroadcaster.java b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleEventBroadcaster.java index 152f4285485e..1ae2b353ba88 100644 --- a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleEventBroadcaster.java +++ b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleEventBroadcaster.java @@ -35,8 +35,8 @@ import com.sun.star.uno.UnoRuntime; * com.sun.star.accessibility.XAccessibleEventBroadcaster</code> * interface methods : * <ul> - * <li><code> addEventListener()</code></li> - * <li><code> removeEventListener()</code></li> + * <li><code> addAccessibleEventEventListener()</code></li> + * <li><code> removeAccessibleEventEventListener()</code></li> * </ul> <p> * * This test needs the following object relations : @@ -115,7 +115,7 @@ public class _XAccessibleEventBroadcaster { */ public boolean _addEventListener() { System.out.println("adding two listeners"); - oObj.addEventListener(list); + oObj.addAccessibleEventEventListener(list); boolean isTransient = chkTransient(oObj); System.out.println("fire event"); prod.fireEvent() ; @@ -135,7 +135,7 @@ public class _XAccessibleEventBroadcaster { } else { System.out.println("Object is Transient, listener isn't expected to be called"); } - oObj.removeEventListener(list); + oObj.removeAccessibleEventEventListener(list); } return works; @@ -158,7 +158,7 @@ public class _XAccessibleEventBroadcaster { list.notifiedEvent = null; System.out.println("remove first listener"); - oObj.removeEventListener(list); + oObj.removeAccessibleEventEventListener(list); System.out.println("fire event"); prod.fireEvent() ; diff --git a/toolkit/test/accessibility/AccessibilityTreeModel.java b/toolkit/test/accessibility/AccessibilityTreeModel.java index bd442ed0912c..a30329c6daf5 100644 --- a/toolkit/test/accessibility/AccessibilityTreeModel.java +++ b/toolkit/test/accessibility/AccessibilityTreeModel.java @@ -449,7 +449,7 @@ public class AccessibilityTreeModel XAccessibleEventBroadcaster xBroadcaster = getBroadcaster( aObject ); if (xBroadcaster != null) { - xBroadcaster.addEventListener( mxListener ); + xBroadcaster.addAccessibleEventListener( mxListener ); } } @@ -458,7 +458,7 @@ public class AccessibilityTreeModel XAccessibleEventBroadcaster xBroadcaster = getBroadcaster( aObject ); if (xBroadcaster != null) { - xBroadcaster.removeEventListener( mxListener ); + xBroadcaster.removeAccessibleEventListener( mxListener ); } } diff --git a/toolkit/test/accessibility/ov/ListeningObjectView.java b/toolkit/test/accessibility/ov/ListeningObjectView.java index 1b17ef973d3e..dd9291fe8231 100644 --- a/toolkit/test/accessibility/ov/ListeningObjectView.java +++ b/toolkit/test/accessibility/ov/ListeningObjectView.java @@ -47,7 +47,7 @@ abstract class ListeningObjectView UnoRuntime.queryInterface( XAccessibleEventBroadcaster.class, xContext); if (xBroadcaster != null) - xBroadcaster.addEventListener (this); + xBroadcaster.addAccessibleEventListener (this); } @@ -61,7 +61,7 @@ abstract class ListeningObjectView UnoRuntime.queryInterface( XAccessibleEventBroadcaster.class, mxContext); if (xBroadcaster != null) - xBroadcaster.removeEventListener (this); + xBroadcaster.removeAccessibleEventListener (this); } /** Derived classes have to implement this method to handle incoming |