/** * Returns true if all the steps in the wizard return <tt>true</tt> from * {@link IWizardStep#isComplete}. This is primarily used to determine if the last button can be * enabled. * * @return <tt>true</tt> if all the steps in the wizard are complete, <tt>false</tt> otherwise. */ protected final boolean allStepsComplete() { for (IWizardStep step : steps) { if (!step.isComplete()) { return false; } } return true; }
/** * Returns true if all the steps in the wizard return <tt>true</tt> from * {@link IWizardStep#isComplete}. This is primarily used to determine if the last button can be * enabled. * * @return <tt>true</tt> if all the steps in the wizard are complete, <tt>false</tt> otherwise. */ protected final boolean allStepsComplete() { for (IWizardStep step : steps) { if (!step.isComplete()) { return false; } } return true; }
/** * Checks if the next button should be enabled. * * @return <tt>true</tt> if the next button should be enabled, <tt>false</tt> otherwise. */ @Override public boolean isNextAvailable() { return activeStep.isComplete() && !isLastStep(activeStep); }
/** * Checks if the next button should be enabled. * * @return <tt>true</tt> if the next button should be enabled, <tt>false</tt> otherwise. */ public boolean isNextAvailable() { return activeStep.isComplete() && !isLastStep(activeStep); }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } target.addComponent(wizard); }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } target.add(wizard); }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } target.add(wizard); } }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } } }
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the // model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } }
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } // target.addComponent(wizard); } });
@Override protected void onClick(AjaxRequestTarget target, Form form) { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } // target.addComponent(wizard); } });
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, move the // model onward if (step.isComplete()) { wizardModel.next(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.NextButton.step.did.not.complete", this)); } }
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } } }
/** * @see org.apache.wicket.extensions.wizard.WizardButton#onClick() */ @Override public void onClick() { IWizardModel wizardModel = getWizardModel(); IWizardStep step = wizardModel.getActiveStep(); // let the step apply any state step.applyState(); // if the step completed after applying the state, notify the wizard if (step.isComplete()) { getWizardModel().finish(); } else { error(getLocalizer().getString( "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete", this)); } } }