diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-06 08:55:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 09:41:28 +0200 |
commit | 0477e6c39b7ce8b7f6560fbf222c19fe4f358dc8 (patch) | |
tree | 218eba20dd23c6a865cf01aa7532bf1261a69bc8 /toolkit/test/accessibility/AccTreeNode.java | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'toolkit/test/accessibility/AccTreeNode.java')
-rw-r--r-- | toolkit/test/accessibility/AccTreeNode.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java index ab673ed7bdc4..73eb9a757e29 100644 --- a/toolkit/test/accessibility/AccTreeNode.java +++ b/toolkit/test/accessibility/AccTreeNode.java @@ -75,6 +75,7 @@ class AccTreeNode object. This is done by replacing every handler by a new one. An update method at each handler would be better of course. */ + @Override public void update () { for (int i=0; i<maHandlers.size(); i++) @@ -165,6 +166,7 @@ class AccTreeNode return aDescriptor; } + @Override public int getChildCount() { int nChildCount = 0; @@ -177,6 +179,7 @@ class AccTreeNode } /** iterate over handlers until the child is found */ + @Override public AccessibleTreeNode getChild (int nIndex) throws IndexOutOfBoundsException { @@ -200,6 +203,7 @@ class AccTreeNode return null; } + @Override public AccessibleTreeNode getChildNoCreate (int nIndex) throws IndexOutOfBoundsException { @@ -223,6 +227,7 @@ class AccTreeNode return null; } + @Override public boolean removeChild (int nIndex) throws IndexOutOfBoundsException { @@ -251,6 +256,7 @@ class AccTreeNode } + @Override public int indexOf (AccessibleTreeNode aNode) { int nBaseIndex = 0; @@ -272,11 +278,13 @@ class AccTreeNode /** this node is a leaf if have no handlers, or is those handlers show no children */ + @Override public boolean isLeaf() { return (maHandlers.size() == 0); } + @Override public boolean equals (Object aOther) { return (this == aOther) || (aOther!=null && aOther.equals(mxContext)); @@ -298,6 +306,7 @@ class AccTreeNode } } + @Override public void performAction( int nIndex ) { if( nIndex >= 0 ) |