summaryrefslogtreecommitdiff
path: root/toolkit/test/accessibility/AccessibilityTreeModel.java
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/test/accessibility/AccessibilityTreeModel.java')
-rw-r--r--toolkit/test/accessibility/AccessibilityTreeModel.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/toolkit/test/accessibility/AccessibilityTreeModel.java b/toolkit/test/accessibility/AccessibilityTreeModel.java
index d4981e86b4a0..7a226ec6c6af 100644
--- a/toolkit/test/accessibility/AccessibilityTreeModel.java
+++ b/toolkit/test/accessibility/AccessibilityTreeModel.java
@@ -164,7 +164,7 @@ public class AccessibilityTreeModel
}
catch (Exception e)
{
- System.out.println ("caught exception while removing child "
+ System.out.println ("caught exception while removing child "
+ aNode + " : " + e);
e.printStackTrace ();
return false;
@@ -174,7 +174,7 @@ public class AccessibilityTreeModel
public void removeNode (XAccessibleContext xNode)
{
- if (xNode != null)
+ if (xNode != null)
{
AccessibleTreeNode aNode = maNodeMap.GetNode (xNode);
AccessibleTreeNode aRootNode = (AccessibleTreeNode)getRoot();
@@ -189,7 +189,7 @@ public class AccessibilityTreeModel
/** Add add a new child to a parent.
- @return
+ @return
Returns the new or existing representation of the specified
accessible object.
*/
@@ -210,7 +210,7 @@ public class AccessibilityTreeModel
}
catch (Exception e)
{
- System.out.println ("caught exception while adding child "
+ System.out.println ("caught exception while adding child "
+ xNewChild + " to parent " + aParentNode + ": " + e);
e.printStackTrace ();
}
@@ -227,7 +227,7 @@ public class AccessibilityTreeModel
{
if (maCanvas != null)
maCanvas.updateNode ((AccTreeNode)aParentNode);
-
+
// A call to fireTreeNodesInserted for xNew
// should be sufficient but at least the
// StringNode object that contains the number of
@@ -242,7 +242,7 @@ public class AccessibilityTreeModel
}
}
-
+
/** Add the child node to the internal tree structure.
@param aNode
The node to insert into the internal tree structure.
@@ -265,11 +265,11 @@ public class AccessibilityTreeModel
}
bRet = true;
}
-
+
}
catch (Exception e)
{
- System.out.println ("caught exception while adding node "
+ System.out.println ("caught exception while adding node "
+ aNode + ": " + e);
e.printStackTrace ();
}
@@ -335,7 +335,7 @@ public class AccessibilityTreeModel
}
/** Create a TreeModelEvent object that informs listeners that one child
- has been removed from or inserted into its parent.
+ has been removed from or inserted into its parent.
*/
public TreeModelEvent createEvent (XAccessibleContext xParent, XAccessible xChild)
{
@@ -354,7 +354,7 @@ public class AccessibilityTreeModel
protected TreeModelEvent createEvent (
- AccessibleTreeNode aParentNode,
+ AccessibleTreeNode aParentNode,
AccessibleTreeNode aChildNode)
{
Object[] aPathToParent = createPath (aParentNode);
@@ -367,11 +367,11 @@ public class AccessibilityTreeModel
if (nIndexInParent == -1)
// This event may be passed only to treeStructureChanged of the listeners.
- return new TreeModelEvent (this,
+ return new TreeModelEvent (this,
aPathToParent);
else
// General purpose event for removing or inserting known nodes.
- return new TreeModelEvent (this,
+ return new TreeModelEvent (this,
aPathToParent,
new int[] {nIndexInParent},
new Object[] {aChildNode} );
@@ -422,7 +422,7 @@ public class AccessibilityTreeModel
}
-
+
protected XAccessibleEventBroadcaster getBroadcaster (Object aObject)
{
if (aObject instanceof AccTreeNode)
@@ -466,15 +466,15 @@ public class AccessibilityTreeModel
public void updateNode (XAccessibleContext xSource, java.lang.Class class1)
{
- updateNode (xSource, class1,null);
+ updateNode (xSource, class1,null);
}
- /** Get a list of children of the node associated with xSource that are
+ /** Get a list of children of the node associated with xSource that are
affected by the given handlers. Fire events that these children may
have changed in the tree view. Update the canvas representation of
xSource.
*/
- public AccTreeNode updateNode (XAccessibleContext xSource,
+ public AccTreeNode updateNode (XAccessibleContext xSource,
java.lang.Class class1, java.lang.Class class2)
{
AccessibleTreeNode aTreeNode = maNodeMap.GetNode (xSource);