2 import com
.sun
.star
.uno
.UnoRuntime
;
3 import com
.sun
.star
.accessibility
.XAccessibleContext
;
4 import com
.sun
.star
.accessibility
.XAccessibleHyperlink
;
7 class AccessibleHyperlinkHandler
extends AccessibleTreeHandler
9 public NodeHandler
createHandler (XAccessibleContext xContext
)
11 XAccessibleHyperlink xLink
=
12 (XAccessibleHyperlink
) UnoRuntime
.queryInterface (
13 XAccessibleHyperlink
.class, xContext
);
15 return new AccessibleHyperlinkHandler (xLink
);
20 public AccessibleHyperlinkHandler ()
24 public AccessibleHyperlinkHandler (XAccessibleHyperlink xLink
)
27 maChildList
.setSize (1);
30 protected XAccessibleHyperlink
getHyperlink(Object aObject
)
32 XAccessibleHyperlink xHyperlink
=
33 (XAccessibleHyperlink
) UnoRuntime
.queryInterface (
34 XAccessibleHyperlink
.class, aObject
);
38 public AccessibleTreeNode
getChild (AccessibleTreeNode aParent
, int nIndex
)
40 return new StringNode ("interface XAccessibleHyperlink is supported", aParent
);