{
AccessibleTreeNode aChild = null;
if( aParent instanceof AccTreeNode )
{
XAccessibleSelection xSelection =
((AccTreeNode)aParent).getSelection();
if( xSelection != null )
{
switch( nIndex )
{
case 0:
aChild = new StringNode(
"getSelectedAccessibleChildCount: " +
xSelection.getSelectedAccessibleChildCount(),
aParent );
break;
case 1:
{
VectorNode aVNode =
new VectorNode( "Selected Children", aParent);
int nSelected = 0;
int nCount = ((AccTreeNode)aParent).getContext().
getAccessibleChildCount();
try
{
for( int i = 0; i < nCount; i++ )
{
try
{
if( xSelection.isAccessibleChildSelected( i ) )
{
XAccessible xSelChild = xSelection.
getSelectedAccessibleChild(nSelected);
XAccessible xNChild =
((AccTreeNode)aParent).
getContext().getAccessibleChild( i );
aVNode.addChild( new StringNode(