You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sb...@apache.org on 2016/01/10 16:55:09 UTC
wicket git commit: WizardButtonBar: moved factory methods to
#onInitialize, WICKET-6070
Repository: wicket
Updated Branches:
refs/heads/master 2e36671c6 -> b475e9aaa
WizardButtonBar: moved factory methods to #onInitialize, WICKET-6070
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/b475e9aa
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/b475e9aa
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/b475e9aa
Branch: refs/heads/master
Commit: b475e9aaafc831ea6856ba3e4933d06e3e37a0d5
Parents: 2e36671
Author: Sebastien Briquet <sb...@apache.org>
Authored: Sun Jan 10 16:54:02 2016 +0100
Committer: Sebastien Briquet <sb...@apache.org>
Committed: Sun Jan 10 16:54:48 2016 +0100
----------------------------------------------------------------------
.../apache/wicket/extensions/wizard/WizardButtonBar.java | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/b475e9aa/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardButtonBar.java
----------------------------------------------------------------------
diff --git a/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardButtonBar.java b/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardButtonBar.java
index b9d586b..b4362d4 100644
--- a/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardButtonBar.java
+++ b/wicket-extensions/src/main/java/org/apache/wicket/extensions/wizard/WizardButtonBar.java
@@ -35,6 +35,8 @@ public class WizardButtonBar extends Panel implements IDefaultButtonProvider
{
private static final long serialVersionUID = 1L;
+ private final IWizard wizard;
+
/**
* Construct.
*
@@ -46,6 +48,15 @@ public class WizardButtonBar extends Panel implements IDefaultButtonProvider
public WizardButtonBar(final String id, final IWizard wizard)
{
super(id);
+
+ this.wizard = wizard;
+ }
+
+ @Override
+ protected void onInitialize()
+ {
+ super.onInitialize();
+
add(newPreviousButton("previous", wizard));
add(newNextButton("next", wizard));
add(newLastButton("last", wizard));