com.intellij.openapi.options
Class SettingsEditor<Settings>
java.lang.Object
com.intellij.openapi.options.SettingsEditor<Settings>
- Direct Known Subclasses:
- ApplicationServerPersistentDataEditor, CompositeSettingsEditor, SettingsEditorGroup, SettingsEditorWrapper
public abstract class SettingsEditor<Settings>
- extends java.lang.Object
This class presents an abstraction of user interface transactional editor provider of some abstract data type.
getComponent() should be called before resetFrom(Object)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SettingsEditor
public SettingsEditor()
SettingsEditor
public SettingsEditor(Factory<Settings> settingsFactory)
resetEditorFrom
protected abstract void resetEditorFrom(Settings s)
applyEditorTo
protected abstract void applyEditorTo(Settings s)
throws ConfigurationException
- Throws:
ConfigurationException
createEditor
protected abstract javax.swing.JComponent createEditor()
disposeEditor
protected abstract void disposeEditor()
getSnapshot
public Settings getSnapshot()
throws ConfigurationException
- Throws:
ConfigurationException
getOwner
public final CompositeSettingsEditor<Settings> getOwner()
getFactory
public Factory<Settings> getFactory()
resetFrom
public final void resetFrom(Settings s)
applyTo
public final void applyTo(Settings s)
throws ConfigurationException
- Throws:
ConfigurationException
getComponent
public final javax.swing.JComponent getComponent()
dispose
public final void dispose()
uninstallWatcher
protected void uninstallWatcher()
installWatcher
protected void installWatcher(javax.swing.JComponent c)
addSettingsEditorListener
public final void addSettingsEditorListener(SettingsEditorListener<Settings> listener)
removeSettingsEditorListener
public final void removeSettingsEditorListener(SettingsEditorListener<Settings> listener)
fireEditorStateChanged
protected final void fireEditorStateChanged()