public abstract class SelectImportedProjectsStep<T> extends ProjectImportWizardStep
Modifier and Type | Field and Description |
---|---|
protected ElementsChooser<T> |
fileChooser |
EMPTY_ARRAY
Constructor and Description |
---|
SelectImportedProjectsStep(WizardContext context) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getComponent() |
ProjectImportBuilder<T> |
getContext() |
protected javax.swing.Icon |
getElementIcon(T item) |
protected abstract java.lang.String |
getElementText(T item) |
protected boolean |
isElementEnabled(T element) |
void |
onStepLeaving() |
void |
updateDataModel()
Commits data from UI into ModuleBuilder and WizardContext
|
void |
updateStep()
Update UI from ModuleBuilder and WizardContext
|
boolean |
validate()
Validates user input before
ModuleWizardStep.updateDataModel() is called. |
getBuilder, getIcon, getWizardContext, suggestProjectNameAndPath
createFieldPanel, disposeUIResources, getHelpId, getName, isStepVisible, onWizardFinished, toString
_commit, _init, fireStateChanged, getPreferredFocusedComponent, registerStepListener
protected final ElementsChooser<T> fileChooser
public SelectImportedProjectsStep(WizardContext context)
protected javax.swing.Icon getElementIcon(T item)
protected abstract java.lang.String getElementText(T item)
public 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 boolean isElementEnabled(T element)
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 updateDataModel()
ModuleWizardStep
updateDataModel
in class ModuleWizardStep
public void onStepLeaving()
onStepLeaving
in class ModuleWizardStep
public ProjectImportBuilder<T> getContext()