summaryrefslogtreecommitdiff
path: root/toolkit/test/accessibility/AccessibleTableHandler.java
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2002-03-08 16:30:18 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2002-03-08 16:30:18 +0000
commit75345d9b5845e57c3f83ade2266f59fe01ac6572 (patch)
tree1c5fc8380ea0a7a9491804e7d45344f9e733a159 /toolkit/test/accessibility/AccessibleTableHandler.java
parenta403b7e53223c93b47a1afa0d81da155e6920873 (diff)
Now use custom tree model in order to create data on-the-fly.
Diffstat (limited to 'toolkit/test/accessibility/AccessibleTableHandler.java')
-rw-r--r--toolkit/test/accessibility/AccessibleTableHandler.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/toolkit/test/accessibility/AccessibleTableHandler.java b/toolkit/test/accessibility/AccessibleTableHandler.java
new file mode 100644
index 000000000000..90d6d1b791fd
--- /dev/null
+++ b/toolkit/test/accessibility/AccessibleTableHandler.java
@@ -0,0 +1,24 @@
+
+import com.sun.star.uno.UnoRuntime;
+import drafts.com.sun.star.accessibility.XAccessibleTable;
+
+
+class AccessibleTableHandler extends NodeHandler
+{
+ protected XAccessibleTable getTable(Object aObject)
+ {
+ return (XAccessibleTable) UnoRuntime.queryInterface (
+ XAccessibleTable.class, aObject);
+ }
+
+ public int getChildCount(Object aObject)
+ {
+ return (getTable(aObject) == null) ? 0 : 1;
+ }
+
+ public Object getChild(Object aObject, int nIndex)
+ {
+ XAccessibleTable xTable = getTable(aObject);
+ return "interface XAccessibleTable is supported";
+ }
+}