/** * Construct. * <p> * 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 {@link #init(IWizardModel)} to * initialize the wizard. * </p> * <p> * This constructor is not meant for normal clients of this class * </p> * * @param id * The component model * @param addDefaultCssStyle * Whether to add the {@link #addDefaultCssStyle() default style} */ public Wizard(String id, boolean addDefaultCssStyle) { super(id); if (addDefaultCssStyle) { addDefaultCssStyle(); } }
/** * Construct with a transition model. * <p> * For most clients, this is typically the right constructor to use. * </p> * * @param id * The component id * @param wizardModel * The transitions model * @param addDefaultCssStyle * Whether to add the {@link #addDefaultCssStyle() default style} */ public Wizard(String id, IWizardModel wizardModel, boolean addDefaultCssStyle) { super(id); init(wizardModel); if (addDefaultCssStyle) { addDefaultCssStyle(); } }