public abstract class AbstractExternalProjectSettingsControl<S extends ExternalProjectSettings> extends AbstractSettingsControl implements ExternalSystemSettingsControl<S>
Modifier | Constructor and Description |
---|---|
protected |
AbstractExternalProjectSettingsControl(Project project,
S initialSettings) |
protected |
AbstractExternalProjectSettingsControl(Project project,
S initialSettings,
ExternalSystemSettingsControlCustomizer controlCustomizer)
Deprecated.
see
ExternalSystemSettingsControlCustomizer for details |
protected |
AbstractExternalProjectSettingsControl(S initialSettings) |
Modifier and Type | Method and Description |
---|---|
void |
apply(S settings)
Asks current control to fill given settings with the current user-defined values.
|
protected abstract void |
applyExtraSettings(S settings) |
void |
disposeUIResources() |
protected abstract void |
fillExtraControls(PaintAwarePanel content,
int indentLevel) |
void |
fillUi(PaintAwarePanel canvas,
int indentLevel)
Adds current control-specific UI controls to the given canvas.
|
S |
getInitialSettings() |
Project |
getProject() |
protected abstract boolean |
isExtraSettingModified() |
boolean |
isModified() |
void |
reset()
Asks current control to reset its state to the initial one.
|
void |
reset(boolean isDefaultModuleCreation,
Project project) |
void |
reset(boolean isDefaultModuleCreation,
WizardContext wizardContext,
Project project) |
void |
reset(Project project)
Asks current control to reset its state to the initial one.
|
void |
reset(WizardContext wizardContext)
Asks current control to reset its state to the initial one.
|
protected abstract void |
resetExtraSettings(boolean isDefaultModuleCreation) |
protected void |
resetExtraSettings(boolean isDefaultModuleCreation,
WizardContext wizardContext) |
void |
setCurrentProject(Project project)
|
void |
showUi(boolean show)
Hides/shows
components added by the current control . |
protected void |
updateInitialExtraSettings() |
void |
updateInitialSettings() |
reset, setProject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHelpId, validate
protected AbstractExternalProjectSettingsControl(S initialSettings)
protected AbstractExternalProjectSettingsControl(Project project, S initialSettings)
@Deprecated protected AbstractExternalProjectSettingsControl(Project project, S initialSettings, ExternalSystemSettingsControlCustomizer controlCustomizer)
ExternalSystemSettingsControlCustomizer
for detailspublic S getInitialSettings()
public void fillUi(PaintAwarePanel canvas, int indentLevel)
ExternalSystemSettingsControl
GridBagLayout
. That is the reason on why we use
this method instead of a method like 'JComponent getComponent()' - there is a possible case that given canvas has components
from more than one control and we might want them to be aligned.fillUi
in interface ExternalSystemSettingsControl<S extends ExternalProjectSettings>
canvas
- container to use as a holder for UI components specific to the current controlindentLevel
- a hint on how much UI components added by the current control should be indentedprotected abstract void fillExtraControls(PaintAwarePanel content, int indentLevel)
public boolean isModified()
isModified
in interface ExternalSystemSettingsControl<S extends ExternalProjectSettings>
true
if settings exposed by the current control have been modified; false
otherwiseprotected abstract boolean isExtraSettingModified()
public void reset()
ExternalSystemSettingsControl
reset
in interface ExternalSystemSettingsControl<S extends ExternalProjectSettings>
public void reset(Project project)
ExternalSystemSettingsControl
reset
in interface ExternalSystemSettingsControl<S extends ExternalProjectSettings>
public void reset(WizardContext wizardContext)
ExternalSystemSettingsControl
reset
in interface ExternalSystemSettingsControl<S extends ExternalProjectSettings>
public void reset(boolean isDefaultModuleCreation, Project project)
public void reset(boolean isDefaultModuleCreation, WizardContext wizardContext, Project project)
protected abstract void resetExtraSettings(boolean isDefaultModuleCreation)
protected void resetExtraSettings(boolean isDefaultModuleCreation, WizardContext wizardContext)
public void apply(S settings)
ExternalSystemSettingsControl
apply
in interface ExternalSystemSettingsControl<S extends ExternalProjectSettings>
settings
- settings holderprotected abstract void applyExtraSettings(S settings)
public void disposeUIResources()
disposeUIResources
in interface ExternalSystemSettingsControl<S extends ExternalProjectSettings>
public void showUi(boolean show)
ExternalSystemSettingsControl
components added by the current control
.showUi
in interface ExternalSystemSettingsControl<S extends ExternalProjectSettings>
show
- flag which indicates if current control' components should be visiblepublic void updateInitialSettings()
protected void updateInitialExtraSettings()
public void setCurrentProject(Project project)
public Project getProject()
getProject
in class AbstractSettingsControl