merged tag ooo/DEV300_m102
[LibreOffice.git] / toolkit / test / accessibility / AccessibleEditableTextHandler.java
bloba79158c099ba7bd9b0379af601c406c1e9ef3768
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);
14 if (xText != null)
15 return new AccessibleEditableTextHandler (xText);
16 else
17 return null;
20 public AccessibleEditableTextHandler ()
24 public AccessibleEditableTextHandler (XAccessibleEditableText xText)
26 if (xText != null)
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);