Class SelectProjectStep
Wizard step in the new project wizard for choosing the new project's root folder location and
naming the project.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(ProjectWizardData data) This method is called on the current step when advancing to the next step.booleancanFinish(ProjectWizardData data) Reports true if the information in the given data object is sufficient enough that this step does not need to be shown in order to complete the wizard.Get the panel objectvoidinitialize(ProjectWizardData data) Initialize the panel as though this is the first time it is being displayed.booleanisValid()Checks if the Gui component has completed and has valid information.voidThis method should populate the given data object with information from its Gui component.Methods inherited from class docking.wizard.WizardStep
clearStatus, dispose, getDefaultFocusComponent, getHelpLocation, getStatusMessage, getTitle, isApplicable, notifyStatusChanged, setHelpLocation, setStatusMessage, setTitle
-
Constructor Details
-
SelectProjectStep
-
-
Method Details
-
initialize
Description copied from class:WizardStepInitialize the panel as though this is the first time it is being displayed. This is where the step should initialize all Gui fields from the given data object.Creating the Gui component can be done lazily in this method if not done in the constructor, as the initialize() method will always be called before the getComponent() method is called. Just be careful as this method can be called multiple times if the user backtracks in the wizard dialog.
- Specified by:
initializein classWizardStep<ProjectWizardData>- Parameters:
data- the custom wizard data containing the information from all previous steps.
-
isValid
public boolean isValid()Description copied from class:WizardStepChecks if the Gui component has completed and has valid information. Typically, whenever the Gui state changes, it notifies the model using the statusChangedCallback, which in turn will call the isValid() method on the current step. If the current step is valid, it will in turn trigger additional calls to follow-on steps to see if the wizard can finish.- Specified by:
isValidin classWizardStep<ProjectWizardData>- Returns:
- true if the Gui component has completed and valid information and is eligible to continue to the next step.
-
populateData
Description copied from class:WizardStepThis method should populate the given data object with information from its Gui component.- Specified by:
populateDatain classWizardStep<ProjectWizardData>- Parameters:
data- the custom wizard data containing the information from all previous steps.
-
canFinish
Description copied from class:WizardStepReports true if the information in the given data object is sufficient enough that this step does not need to be shown in order to complete the wizard. It is only called on steps subsequent to the current step. Wizard steps should only make their decisions based on the information in the data object and not their internal GUI, which might not have even been initialized at this point. This method is only called on steps whoseWizardStep.isApplicable(Object)method returns true.- Specified by:
canFinishin classWizardStep<ProjectWizardData>- Parameters:
data- the custom wizard data containing the information from all previous steps.- Returns:
- true if this step does not need to be shown before completing the wizard
-
apply
Description copied from class:WizardStepThis method is called on the current step when advancing to the next step. It is also called on all subsequent steps when finishing the wizard as those steps are skipped because the finish button was pressed. This method is for steps to perform more extensive operations when moving on to subsequent steps. Most steps can just return true here as simple data will be added during theWizardStep.populateData(Object)method.- Specified by:
applyin classWizardStep<ProjectWizardData>- Parameters:
data- the custom wizard data containing the information from all previous steps.- Returns:
- true if the apply completes successfully.
-
getComponent
Description copied from class:WizardStepGet the panel object- Specified by:
getComponentin classWizardStep<ProjectWizardData>- Returns:
- JPanel panel
-