summaryrefslogtreecommitdiff
path: root/toolkit/test/accessibility/ChildEventHandler.java
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 16:05:12 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-03-27 16:05:12 +0000
commitfd2cf3dc7cd9c73070fa4d70c8ca99c9fc1ce135 (patch)
tree9569a564e06fba817528ea414129b4074d83cb61 /toolkit/test/accessibility/ChildEventHandler.java
parentff09f8d6ef2c613037f039dbcafcad6b76243a48 (diff)
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'toolkit/test/accessibility/ChildEventHandler.java')
-rw-r--r--toolkit/test/accessibility/ChildEventHandler.java46
1 files changed, 0 insertions, 46 deletions
diff --git a/toolkit/test/accessibility/ChildEventHandler.java b/toolkit/test/accessibility/ChildEventHandler.java
deleted file mode 100644
index 546a75f95fca..000000000000
--- a/toolkit/test/accessibility/ChildEventHandler.java
+++ /dev/null
@@ -1,46 +0,0 @@
-import drafts.com.sun.star.accessibility.XAccessible;
-import drafts.com.sun.star.accessibility.AccessibleEventObject;
-import com.sun.star.uno.UnoRuntime;
-
-import java.io.PrintStream;
-
-class ChildEventHandler
- extends EventHandler
-{
- public ChildEventHandler (AccessibleEventObject aEvent, AccessibilityTreeModel aTreeModel)
- {
- super (aEvent, aTreeModel);
- mxOldChild = (XAccessible)UnoRuntime.queryInterface(
- XAccessible.class, aEvent.OldValue);
- mxNewChild = (XAccessible)UnoRuntime.queryInterface(
- XAccessible.class, aEvent.NewValue);
- }
-
- public void PrintOldAndNew (PrintStream out)
- {
- if (mxOldChild != null)
- out.println (" removing child " + mxOldChild);
- if (mxNewChild != null)
- out.println (" adding child " + mxNewChild);
- }
-
- public void Process ()
- {
- // Insertion and removal of children should be mutually exclusive.
- // But this is a test tool and should take everything into account.
- if (mxOldChild != null)
- {
- maTreeModel.removeNode (mxOldChild.getAccessibleContext());
- maTreeModel.updateNode (mxEventSource, AccessibleTreeHandler.class);
- }
-
- if (mxNewChild != null)
- {
- maTreeModel.addChild (mxEventSource, mxNewChild);
- }
- }
-
-
- private XAccessible mxOldChild;
- private XAccessible mxNewChild;
-}