public class ProjectNameStep extends ModuleWizardStep
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
myAdditionalContentPanel |
protected WizardMode |
myMode |
protected NamePathComponent |
myNamePathComponent |
protected WizardContext |
myWizardContext |
EMPTY_ARRAY
Constructor and Description |
---|
ProjectNameStep(WizardContext wizardContext,
WizardMode mode) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getComponent() |
java.lang.String |
getHelpId() |
javax.swing.Icon |
getIcon() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
java.lang.String |
getProjectFileDirectory() |
java.lang.String |
getProjectName() |
boolean |
isStepVisible() |
void |
updateDataModel()
Commits data from UI into ModuleBuilder and WizardContext
|
boolean |
validate()
Validates user input before
ModuleWizardStep.updateDataModel() is called. |
createFieldPanel, disposeUIResources, getName, onStepLeaving, onWizardFinished, toString, updateStep
_commit, _init, fireStateChanged, registerStepListener
protected final javax.swing.JPanel myAdditionalContentPanel
protected NamePathComponent myNamePathComponent
protected final WizardContext myWizardContext
protected final WizardMode myMode
public ProjectNameStep(WizardContext wizardContext, WizardMode mode)
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 boolean isStepVisible()
isStepVisible
in class ModuleWizardStep
public void updateDataModel()
ModuleWizardStep
updateDataModel
in class ModuleWizardStep
public javax.swing.Icon getIcon()
getIcon
in interface Step
getIcon
in class StepAdapter
null
.public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent
in interface Step
getPreferredFocusedComponent
in class StepAdapter
public java.lang.String getHelpId()
getHelpId
in class ModuleWizardStep
public java.lang.String getProjectFileDirectory()
public java.lang.String getProjectName()
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 user