public class ProjectTypeStep extends ModuleWizardStep implements SettingsStep, Disposable
Disposable.Parent
EMPTY_ARRAY
Constructor and Description |
---|
ProjectTypeStep(WizardContext context,
NewProjectWizard wizard,
ModulesProvider modulesProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addExpertField(java.lang.String label,
javax.swing.JComponent field) |
void |
addExpertPanel(javax.swing.JComponent panel) |
void |
addSettingsComponent(javax.swing.JComponent component) |
void |
addSettingsField(java.lang.String label,
javax.swing.JComponent field) |
java.lang.String |
availableTemplateGroupsToString() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
disposeUIResources() |
java.util.Collection<ProjectTemplate> |
getAvailableTemplates() |
javax.swing.JComponent |
getComponent() |
WizardContext |
getContext() |
AddSupportForFrameworksPanel |
getFrameworksPanel() |
ModuleWizardStep |
getFrameworksStep() |
java.lang.String |
getHelpId() |
javax.swing.JTextField |
getModuleNameField() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
void |
onStepLeaving() |
void |
onWizardFinished() |
static void |
resetGroupForTests() |
boolean |
setSelectedTemplate(java.lang.String group,
java.lang.String name) |
void |
updateDataModel()
Commits data from UI into ModuleBuilder and WizardContext
|
boolean |
validate()
Validates user input before
ModuleWizardStep.updateDataModel() is called. |
createFieldPanel, getName, isStepVisible, toString, updateStep
_commit, _init, fireStateChanged, getIcon, registerStepListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getModuleNameLocationSettings
public ProjectTypeStep(WizardContext context, NewProjectWizard wizard, ModulesProvider modulesProvider)
public ModuleWizardStep getFrameworksStep()
public java.util.Collection<ProjectTemplate> getAvailableTemplates()
public void onWizardFinished() throws CommitStepException
onWizardFinished
in class ModuleWizardStep
CommitStepException
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
.public void updateDataModel()
ModuleWizardStep
updateDataModel
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 javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent
in interface Step
getPreferredFocusedComponent
in class StepAdapter
public void dispose()
Disposable
dispose
in interface Disposable
public void disposeUIResources()
disposeUIResources
in class ModuleWizardStep
public java.lang.String availableTemplateGroupsToString()
public boolean setSelectedTemplate(java.lang.String group, java.lang.String name)
public static void resetGroupForTests()
public AddSupportForFrameworksPanel getFrameworksPanel()
public WizardContext getContext()
getContext
in interface SettingsStep
public void addSettingsField(java.lang.String label, javax.swing.JComponent field)
addSettingsField
in interface SettingsStep
public void addSettingsComponent(javax.swing.JComponent component)
addSettingsComponent
in interface SettingsStep
public void addExpertPanel(javax.swing.JComponent panel)
addExpertPanel
in interface SettingsStep
public void addExpertField(java.lang.String label, javax.swing.JComponent field)
addExpertField
in interface SettingsStep
public javax.swing.JTextField getModuleNameField()
getModuleNameField
in interface SettingsStep
public java.lang.String getHelpId()
getHelpId
in class ModuleWizardStep
public void onStepLeaving()
onStepLeaving
in class ModuleWizardStep