diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 16:05:12 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 16:05:12 +0000 |
commit | fd2cf3dc7cd9c73070fa4d70c8ca99c9fc1ce135 (patch) | |
tree | 9569a564e06fba817528ea414129b4074d83cb61 /toolkit/test/accessibility/AccTreeNode.java | |
parent | MWS_SRX644: migrate branch mws_srx644 -> HEAD (diff) | |
download | core-fd2cf3dc7cd9c73070fa4d70c8ca99c9fc1ce135.tar.gz core-fd2cf3dc7cd9c73070fa4d70c8ca99c9fc1ce135.zip |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'toolkit/test/accessibility/AccTreeNode.java')
-rw-r--r-- | toolkit/test/accessibility/AccTreeNode.java | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java index 1ce85b68eb2d..2c041030f2fb 100644 --- a/toolkit/test/accessibility/AccTreeNode.java +++ b/toolkit/test/accessibility/AccTreeNode.java @@ -174,29 +174,6 @@ class AccTreeNode return null; } - public AccessibleTreeNode getChildNoCreate (int nIndex) - throws IndexOutOfBoundsException - { - if( nIndex >= 0 ) - { - for(int i = 0; i < maHandlers.size(); i++) - { - // check if this handler has the child, and if not - // search with next handler - HandlerDescriptor aDescriptor = getHandlerDescriptor (i); - if (nIndex < aDescriptor.mnChildCount) - return aDescriptor.maHandler.getChildNoCreate (this, nIndex); - else - nIndex -= aDescriptor.mnChildCount; - } - } - else - throw new IndexOutOfBoundsException(); - - // nothing found? - return null; - } - public boolean removeChild (int nIndex) throws IndexOutOfBoundsException { @@ -253,7 +230,7 @@ class AccTreeNode public boolean equals (Object aOther) { - return (this == aOther) || (aOther!=null && aOther.equals(mxContext)); + return (this == aOther) || aOther.equals(mxContext); } @@ -320,12 +297,9 @@ class AccTreeNode The returned array containes the indices of the updated children and can be used to create a TreeModelEvent. */ - public Vector updateChildren (java.lang.Class class1) - { - return updateChildren (class1, null); - } - - public Vector updateChildren (java.lang.Class class1, java.lang.Class class2) + public Vector update (java.lang.Class class1) + {return update (class1, null); } + public Vector update (java.lang.Class class1, java.lang.Class class2) { Vector aChildIndices = new Vector(); int nOffset = 0; |