diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2002-03-08 16:30:18 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2002-03-08 16:30:18 +0000 |
commit | 75345d9b5845e57c3f83ade2266f59fe01ac6572 (patch) | |
tree | 1c5fc8380ea0a7a9491804e7d45344f9e733a159 /toolkit/test/accessibility/AccessibleHyperlinkHandler.java | |
parent | a403b7e53223c93b47a1afa0d81da155e6920873 (diff) |
Now use custom tree model in order to create data on-the-fly.
Diffstat (limited to 'toolkit/test/accessibility/AccessibleHyperlinkHandler.java')
-rw-r--r-- | toolkit/test/accessibility/AccessibleHyperlinkHandler.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/toolkit/test/accessibility/AccessibleHyperlinkHandler.java b/toolkit/test/accessibility/AccessibleHyperlinkHandler.java new file mode 100644 index 000000000000..a7bd0583d101 --- /dev/null +++ b/toolkit/test/accessibility/AccessibleHyperlinkHandler.java @@ -0,0 +1,25 @@ + +import com.sun.star.uno.UnoRuntime; +import drafts.com.sun.star.accessibility.XAccessibleHyperlink; + + +class AccessibleHyperlinkHandler extends AccessibleTreeHandler +{ + protected XAccessibleHyperlink getHyperlink(Object aObject) + { + XAccessibleHyperlink xHyperlink = + (XAccessibleHyperlink) UnoRuntime.queryInterface ( + XAccessibleHyperlink.class, aObject); + return xHyperlink; + } + + public int getChildCount(Object aObject) + { + return (getHyperlink(aObject) == null) ? 0 : 1; + } + + public Object getChild(Object aObject, int nIndex) + { + return "interface XAccessibleHyperlink is supported"; + } +} |