Class WizardSupport.InitialWelcomeSteps
- Enclosing class:
WizardSupport
- Author:
- rkinney
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JComponentstatic final Stringprotected JComponentprotected Tutorial -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JComponentcreatePanel(org.netbeans.spi.wizard.WizardController controller, String id, Map settings) Create a panel that represents a named step in the wizard.protected JComponentgetNameControls(org.netbeans.spi.wizard.WizardController controller, Map<String, Object> settings) protected voidrecycleExistingPanel(String id, org.netbeans.spi.wizard.WizardController controller, Map wizardData, JComponent panel) The method provides a chance to call setProblem() or setCanFinish() when the user re-navigates to a panel they've already seen - in the case that the user pressed the Previous button and then the Next button.voidsetTutorial(Tutorial tutorial) Methods inherited from class org.netbeans.spi.wizard.WizardPanelProvider
cancel, createWizard, finish, getLongDescription, indexOfStep, toString
-
Field Details
-
NAME_STEP
- See Also:
-
nameControls
-
actionControls
-
tutorial
-
-
Constructor Details
-
InitialWelcomeSteps
-
-
Method Details
-
recycleExistingPanel
protected void recycleExistingPanel(String id, org.netbeans.spi.wizard.WizardController controller, Map wizardData, JComponent panel) Description copied from class:org.netbeans.spi.wizard.WizardPanelProviderThe method provides a chance to call setProblem() or setCanFinish() when the user re-navigates to a panel they've already seen - in the case that the user pressed the Previous button and then the Next button.The default implementation does nothing, which is sufficient for most cases. If whether this panel is valid or not could have changed because of changed data from a previous panel, or it displays data entered on previous panes which may have changed, you may want to override this method to ensure validity and canFinish are set correctly, and that the components have the correct text.
This method will not be called when a panel is first instantiated -
createPanel()is expected to set validity and canFinish appropriately.The settings Map passed to this method will always be the same Settings map instance that was passed to
createPanel()when the panel was created.If you are implementing WizardPanelProvider and some of the pages are
WizardPages, you should call the super implementation if you override this method.- Overrides:
recycleExistingPanelin classorg.netbeans.spi.wizard.WizardPanelProvider
-
createPanel
protected JComponent createPanel(org.netbeans.spi.wizard.WizardController controller, String id, Map settings) Description copied from class:org.netbeans.spi.wizard.WizardPanelProviderCreate a panel that represents a named step in the wizard. This method will be called exactly once in the life of a wizard. The panel should retain the passed settings Map, and add/remove values from it as the user enters information, callingsetProblem()andsetCanFinish()as appropriate in response to user input.- Specified by:
createPanelin classorg.netbeans.spi.wizard.WizardPanelProvider- Parameters:
controller- - the object which controls whether the Next/Finish buttons in the wizard are enabled, and what instructions are displayed to the user if they are notid- The name of the step, one of the array of steps passed in the constructorsettings- A Map containing settings from earlier steps in the wizard. It is safe to retain a reference to this map and put values in it as the user manipulates the UI; the reference should be refreshed whenever this method is called again.- Returns:
- A JComponent that should be displayed in the center of the wizard
-
getNameControls
protected JComponent getNameControls(org.netbeans.spi.wizard.WizardController controller, Map<String, Object> settings) -
setTutorial
-