/** Overriden to be able to set a default value for the title format. * @return message format in title */ public MessageFormat getTitleFormat () { if (!titleFormatSet) { // we want to call this just for the first time getTitleFormat was called // and not to call it when someone else called setTitleFormat setTitleFormat (new MessageFormat (NbBundle.getMessage(TemplateWizard.class, "CTL_TemplateTitle"))); } return super.getTitleFormat(); }
/** Constructor to be called from public default one. */ private TemplateWizard (TemplateWizardIterImpl it) { super (it); this.iterator = it; // pass this to iterator iterator.initialize(this); putProperty("WizardPanel_autoWizardStyle", Boolean.TRUE); // NOI18N putProperty("WizardPanel_contentDisplayed", Boolean.TRUE); // NOI18N putProperty("WizardPanel_contentNumbered", Boolean.TRUE); // NOI18N setTitle(NbBundle.getMessage(TemplateWizard.class,"CTL_TemplateTitle")); //NOI18N setTitleFormat(new java.text.MessageFormat("{0}")); // NOI18N }