public abstract class SettingsEditor<Settings> extends java.lang.Object implements Disposable
getComponent()
should be called before resetFrom(Object)
Disposable.Parent
Constructor and Description |
---|
SettingsEditor() |
SettingsEditor(Factory<Settings> settingsFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addSettingsEditorListener(SettingsEditorListener<Settings> listener) |
protected abstract void |
applyEditorTo(Settings s) |
void |
applyTo(Settings s) |
void |
bulkUpdate(java.lang.Runnable runnable) |
protected abstract javax.swing.JComponent |
createEditor() |
protected UserActivityWatcher |
createWatcher() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected void |
disposeEditor() |
protected void |
fireEditorStateChanged() |
javax.swing.JComponent |
getComponent() |
Factory<Settings> |
getFactory() |
CompositeSettingsEditor<Settings> |
getOwner() |
Settings |
getSnapshot() |
protected void |
installWatcher(javax.swing.JComponent c) |
void |
removeSettingsEditorListener(SettingsEditorListener<Settings> listener) |
protected abstract void |
resetEditorFrom(Settings s) |
void |
resetFrom(Settings s) |
protected void |
uninstallWatcher() |
protected abstract void resetEditorFrom(Settings s)
protected abstract void applyEditorTo(Settings s) throws ConfigurationException
ConfigurationException
protected abstract javax.swing.JComponent createEditor()
protected void disposeEditor()
public Settings getSnapshot() throws ConfigurationException
ConfigurationException
public final CompositeSettingsEditor<Settings> getOwner()
public final void resetFrom(Settings s)
public final void bulkUpdate(java.lang.Runnable runnable)
public final void applyTo(Settings s) throws ConfigurationException
ConfigurationException
public final javax.swing.JComponent getComponent()
public final void dispose()
Disposable
dispose
in interface Disposable
protected void uninstallWatcher()
protected void installWatcher(javax.swing.JComponent c)
protected UserActivityWatcher createWatcher()
public final void addSettingsEditorListener(SettingsEditorListener<Settings> listener)
public final void removeSettingsEditorListener(SettingsEditorListener<Settings> listener)
protected final void fireEditorStateChanged()