public abstract class ModuleElementsEditor extends java.lang.Object implements ModuleConfigurationEditor
Modifier and Type | Class and Description |
---|---|
static interface |
ModuleElementsEditor.ModuleElementsEditorListener |
Configurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComponent |
myComponent |
protected History |
myHistory |
protected Project |
myProject |
EMPTY
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE
Modifier | Constructor and Description |
---|---|
protected |
ModuleElementsEditor(ModuleConfigurationState state) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ModuleElementsEditor.ModuleElementsEditorListener listener) |
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
void |
canApply() |
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
protected abstract javax.swing.JComponent |
createComponentImpl() |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
protected void |
fireConfigurationChanged() |
javax.swing.JComponent |
getComponent() |
protected ModifiableRootModel |
getModel() |
protected ModuleConfigurationState |
getState() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
void |
moduleCompileOutputChanged(java.lang.String baseUrl,
java.lang.String moduleName) |
protected void |
registerDisposable(Disposable disposable) |
void |
setHistory(History history) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
moduleStateChanged, saveData
getDisplayName, getHelpTopic, getPreferredFocusedComponent, isModified, isModified, isModified, isModified
cancel, reset
protected final Project myProject
protected javax.swing.JComponent myComponent
protected History myHistory
protected ModuleElementsEditor(ModuleConfigurationState state)
public void setHistory(History history)
public void addListener(ModuleElementsEditor.ModuleElementsEditorListener listener)
protected void fireConfigurationChanged()
public boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
true
if the settings were modified, false
otherwiseprotected ModifiableRootModel getModel()
protected ModuleConfigurationState getState()
public void canApply() throws ConfigurationException
ConfigurationException
public void apply() throws ConfigurationException
UnnamedConfigurable
apply
in interface UnnamedConfigurable
ConfigurationException
- if values cannot be appliedpublic void moduleCompileOutputChanged(java.lang.String baseUrl, java.lang.String moduleName)
public void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
public final javax.swing.JComponent createComponent()
UnnamedConfigurable
Also this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent
in interface UnnamedConfigurable
null
if it cannot be createdUnnamedConfigurable.disposeUIResources()
public javax.swing.JComponent getComponent()
protected void registerDisposable(Disposable disposable)
protected abstract javax.swing.JComponent createComponentImpl()