You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2020/09/12 10:46:14 UTC

[wicket] branch wicket-8.x updated: WICKET-6828 allow override of BranchItem#isLast()

This is an automated email from the ASF dual-hosted git repository.

svenmeier pushed a commit to branch wicket-8.x
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/wicket-8.x by this push:
     new 4a71460  WICKET-6828 allow override of BranchItem#isLast()
4a71460 is described below

commit 4a7146008b4000a79da0c6fc546e3ee253d42f4a
Author: Sven Meier <sv...@apache.org>
AuthorDate: Sat Sep 12 09:37:49 2020 +0200

    WICKET-6828 allow override of BranchItem#isLast()
---
 .../extensions/markup/html/repeater/tree/nested/BranchItem.java      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/nested/BranchItem.java b/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/nested/BranchItem.java
index d82f1df..05f891e 100644
--- a/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/nested/BranchItem.java
+++ b/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/tree/nested/BranchItem.java
@@ -54,7 +54,10 @@ public final class BranchItem<T> extends Item<T>
 		}
 	}
 
-	private boolean isLast()
+	/**
+	 * Is this the last branch in the containing subtree.
+	 */
+	protected boolean isLast()
 	{
 		return getIndex() == getParent().size() - 1;
 	}