public abstract class AbstractStepWithProgress<Result> extends ModuleWizardStep
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractStepWithProgress.MyProgressIndicator |
EMPTY_ARRAY
Constructor and Description |
---|
AbstractStepWithProgress(java.lang.String promptStopSearching) |
Modifier and Type | Method and Description |
---|---|
protected abstract Result |
calculate() |
protected abstract javax.swing.JComponent |
createResultsPanel() |
javax.swing.JComponent |
getComponent() |
protected abstract java.lang.String |
getProgressText() |
protected abstract void |
onFinished(Result result,
boolean canceled) |
void |
onStepLeaving() |
void |
performStep() |
protected abstract boolean |
shouldRunProgress() |
void |
updateStep()
Update UI from ModuleBuilder and WizardContext
|
boolean |
validate()
Validates user input before
ModuleWizardStep.updateDataModel() is called. |
createFieldPanel, disposeUIResources, getHelpId, getName, isStepVisible, onWizardFinished, toString, updateDataModel
_commit, _init, fireStateChanged, getIcon, getPreferredFocusedComponent, registerStepListener
public AbstractStepWithProgress(java.lang.String promptStopSearching)
public final javax.swing.JComponent getComponent()
getComponent
in interface Step
getComponent
in class ModuleWizardStep
JComponent
that represents step's UI in the wizard. This
method should not return null
.protected abstract javax.swing.JComponent createResultsPanel()
protected abstract java.lang.String getProgressText()
protected abstract boolean shouldRunProgress()
protected abstract Result calculate()
protected abstract void onFinished(Result result, boolean canceled)
public void performStep()
public void updateStep()
ModuleWizardStep
updateStep
in class ModuleWizardStep
public boolean validate() throws ConfigurationException
ModuleWizardStep
ModuleWizardStep.updateDataModel()
is called.validate
in class ModuleWizardStep
true
if input is valid, false
otherwiseConfigurationException
- if input is not valid and needs user attention. Exception message will be displayed to userpublic void onStepLeaving()
onStepLeaving
in class ModuleWizardStep