All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IWizardStep, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, org.apache.wicket.util.IHierarchical<Component>, org.apache.wicket.util.io.IClusterable
Direct Known Subclasses:
DynamicWizardStep, StaticContentStep

public class WizardStep extends Panel implements IWizardStep
default implementation of IWizardStep. It is also a panel, which is used as the view component.

And example of a custom step with a panel follows. Java (defined e.g. in class x.NewUserWizard):

 private final class UserNameStep extends WizardStep
 {
        public UserNameStep()
        {
                super(new ResourceModel("username.title"), new ResourceModel("username.summary"));
                add(new RequiredTextField("user.userName"));
                add(new RequiredTextField("user.email").add(EmailAddressValidator.getInstance()));
        }
 }
 
HTML (defined in e.g. file x/NewUserWizard$UserNameStep.html):
  <wicket:panel>
   <table>
    <tr>
     <td><wicket:message key="username">Username</wicket:message></td>
     <td><input type="text" wicket:id="user.userName" /></td>
    </tr>
    <tr>
     <td><wicket:message key="email">Email Address</wicket:message></td>
     <td><input type="text" wicket:id="user.email" /></td>
    </tr>
   </table>
  </wicket:panel>
 

Author:
Eelco Hillenius
See Also:
  • Constructor Details

    • WizardStep

      public WizardStep()
      Construct without a title and a summary. Useful for when you provide a custom header by overiding getHeader(String, Component, IWizard).
    • WizardStep

      public WizardStep(IModel<String> title, IModel<String> summary)
      Creates a new step with the specified title and summary. The title and summary are displayed in the wizard title block while this step is active.
      Parameters:
      title - the title of this step.
      summary - a brief summary of this step or some usage guidelines.
    • WizardStep

      public WizardStep(IModel<String> title, IModel<String> summary, IModel<?> model)
      Creates a new step with the specified title and summary. The title and summary are displayed in the wizard title block while this step is active.
      Parameters:
      title - the title of this step.
      summary - a brief summary of this step or some usage guidelines.
      model - Any model which is to be used for this step
    • WizardStep

      public WizardStep(String title, String summary)
      Creates a new step with the specified title and summary. The title and summary are displayed in the wizard title block while this step is active.
      Parameters:
      title - the title of this step.
      summary - a brief summary of this step or some usage guidelines.
    • WizardStep

      public WizardStep(String title, String summary, IModel<?> model)
      Creates a new step with the specified title and summary. The title and summary are displayed in the wizard title block while this step is active.
      Parameters:
      title - the title of this step.
      summary - a brief summary of this step or some usage guidelines.
      model - Any model which is to be used for this step
  • Method Details