public abstract class CodeStyleAbstractConfigurable extends java.lang.Object implements CodeStyleConfigurable, OptionsContainingConfigurable
Configurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependenciesAPPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLEEMPTY| Constructor and Description |
|---|
CodeStyleAbstractConfigurable(CodeStyleSettings settings,
CodeStyleSettings cloneSettings,
java.lang.String displayName) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
void |
apply(CodeStyleSettings settings)
Apply the current UI changes to the given settings.
|
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
protected abstract CodeStyleAbstractPanel |
createPanel(CodeStyleSettings settings) |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
protected CodeStyleSettings |
getCurrentSettings() |
java.lang.String |
getDisplayName()
Returns the visible name of the configurable component.
|
CodeStyleAbstractPanel |
getPanel() |
void |
highlightOptions(java.lang.String searchString) |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
void |
onSomethingChanged() |
java.util.Set<java.lang.String> |
processListOptions() |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
processListOptionsWithPaths() |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
void |
reset(CodeStyleSettings settings)
Reset the UI to the given code style settings.
|
void |
setModel(CodeStyleSchemesModel model) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHelpTopic, getPreferredFocusedComponent, isModified, isModified, isModified, isModifiedcancelpublic CodeStyleAbstractConfigurable(CodeStyleSettings settings, CodeStyleSettings cloneSettings, java.lang.String displayName)
public java.lang.String getDisplayName()
ConfigurablegetDisplayName in interface Configurablepublic javax.swing.JComponent createComponent()
UnnamedConfigurableAlso this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent in interface UnnamedConfigurablenull if it cannot be createdUnnamedConfigurable.disposeUIResources()protected abstract CodeStyleAbstractPanel createPanel(CodeStyleSettings settings)
public void apply()
throws ConfigurationException
UnnamedConfigurableapply in interface UnnamedConfigurableConfigurationException - if values cannot be appliedpublic void apply(CodeStyleSettings settings) throws ConfigurationException
CodeStyleConfigurableapply in interface CodeStyleConfigurablesettings - The settings to apply the UI changes to.ConfigurationException - If the UI contains incorrect values.public void reset()
UnnamedConfigurablereset in interface UnnamedConfigurablepublic void reset(CodeStyleSettings settings)
CodeStyleConfigurablereset in interface CodeStyleConfigurablesettings - The settings to update the UI from.public boolean isModified()
UnnamedConfigurableisModified in interface UnnamedConfigurabletrue if the settings were modified, false otherwisepublic void disposeUIResources()
UnnamedConfigurabledisposeUIResources in interface UnnamedConfigurablepublic CodeStyleAbstractPanel getPanel()
public void setModel(CodeStyleSchemesModel model)
public void onSomethingChanged()
public java.util.Set<java.lang.String> processListOptions()
processListOptions in interface OptionsContainingConfigurablepublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> processListOptionsWithPaths()
processListOptionsWithPaths in interface OptionsContainingConfigurableprotected CodeStyleSettings getCurrentSettings()
public void highlightOptions(java.lang.String searchString)