Class Wizard

    • Constructor Detail

      • Wizard

        public Wizard​(String id)
        Construct. Adds the default style.

        If you override this class, it makes sense to call this constructor (super(id)), then - in your constructor - construct a transition model and then call init(IWizardModel) to initialize the wizard.

        This constructor is not meant for normal clients of this class

        Parameters:
        id - The component model
      • Wizard

        public Wizard​(String id,
                      IWizardModel wizardModel)
        Construct with a transition model. Adds the default style.

        For most clients, this is typically the right constructor to use.

        Parameters:
        id - The component id
        wizardModel - The transitions model
    • Method Detail

      • getActiveStep

        public final IWizardStep getActiveStep()
        Convenience method to get the active step from the model.
        Returns:
        The active step
      • getForm

        public Form<?> getForm()
        Gets the form in which the view is nested, and on which the wizard buttons work.
        Returns:
        The wizard form
      • isVersioned

        public boolean isVersioned()
        Turn versioning off for wizards. This works best when the wizard is not accessed from bookmarkable pages, so that the url doesn't change at all.
        Overrides:
        isVersioned in class Component
        Returns:
        False
        See Also:
        Component.isVersioned()
      • init

        protected void init​(IWizardModel wizardModel)
        Initialize this wizard with a transition model.

        If you constructed this wizard using a constructor without the transitions model argument, you must call this method prior to actually using it.

        Parameters:
        wizardModel -
      • newButtonBar

        protected Component newButtonBar​(String id)
        Create a new button bar. Clients can override this method to provide a custom button bar.
        Parameters:
        id - The id to be used to construct the component
        Returns:
        A new button bar
      • newFeedbackPanel

        protected Component newFeedbackPanel​(String id)
        Create a new feedback panel. Clients can override this method to provide a custom feedback panel.
        Parameters:
        id - The id to be used to construct the component
        Returns:
        A new feedback panel
      • newForm

        protected <E> Form<E> newForm​(String id)
        Create a new form. Clients can override this method to provide a custom Form.
        Type Parameters:
        E - The form's model object type
        Parameters:
        id - The id to be used to construct the component
        Returns:
        a new form
      • newOverviewBar

        protected Component newOverviewBar​(String id)
        Create a new overview bar. Clients can override this method to provide a custom bar.
        Parameters:
        id - The id to be used to construct the component
        Returns:
        A new overview bar