2 import com
.sun
.star
.uno
.UnoRuntime
;
3 import com
.sun
.star
.accessibility
.XAccessibleContext
;
4 import com
.sun
.star
.accessibility
.XAccessibleEditableText
;
7 class AccessibleEditableTextHandler
extends NodeHandler
9 public NodeHandler
createHandler (XAccessibleContext xContext
)
11 XAccessibleEditableText xText
=
12 (XAccessibleEditableText
) UnoRuntime
.queryInterface (
13 XAccessibleEditableText
.class, xContext
);
15 return new AccessibleEditableTextHandler (xText
);
20 public AccessibleEditableTextHandler ()
24 public AccessibleEditableTextHandler (XAccessibleEditableText xText
)
27 maChildList
.setSize (1);
30 protected static XAccessibleEditableText
getEText (AccTreeNode aNode
)
32 return (XAccessibleEditableText
) UnoRuntime
.queryInterface (
33 XAccessibleEditableText
.class, aNode
.getContext());
36 public AccessibleTreeNode
createChild (AccessibleTreeNode aParent
, int nIndex
)
38 return new StringNode ("XAccessibleEditableText is supported", aParent
);