|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SettingsMethods
This interface provides a set of methods that should be added into components which are supported by SettingsManager. Basically all these methods are already implemented in SettingsManager but it is much easier to call them directly from component.
SettingsManager
,
SwingMethods
Method Summary | ||
---|---|---|
void |
loadSettings()
Loads saved settings into the component if it is registered. |
|
void |
registerSettings(SettingsProcessor settingsProcessor)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
java.lang.Object defaultValue)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass)
Registers component for settings auto-save. |
|
|
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue)
Registers component for settings auto-save. |
|
void |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges)
Registers component for settings auto-save. |
|
void |
saveSettings()
Saves component settings. |
|
void |
unregisterSettings()
Unregisters component from settings auto-save. |
Method Detail |
---|
void registerSettings(java.lang.String key)
key
- component settings key<T extends DefaultValue> void registerSettings(java.lang.String key, java.lang.Class<T> defaultValueClass)
T
- default value typekey
- component settings keydefaultValueClass
- component default value classDefaultValue
void registerSettings(java.lang.String key, java.lang.Object defaultValue)
key
- component settings keydefaultValue
- component default value<T extends DefaultValue> void registerSettings(java.lang.String group, java.lang.String key, java.lang.Class<T> defaultValueClass)
T
- default value typegroup
- component settings groupkey
- component settings keydefaultValueClass
- component default value classDefaultValue
void registerSettings(java.lang.String group, java.lang.String key, java.lang.Object defaultValue)
group
- component settings groupkey
- component settings keydefaultValue
- component default valuevoid registerSettings(java.lang.String group, java.lang.String key)
group
- component settings groupkey
- component settings keyvoid registerSettings(java.lang.String key, boolean loadInitialSettings, boolean applySettingsChanges)
key
- component settings keyloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or not<T extends DefaultValue> void registerSettings(java.lang.String key, java.lang.Class<T> defaultValueClass, boolean loadInitialSettings, boolean applySettingsChanges)
T
- default value typekey
- component settings keydefaultValueClass
- component default value classloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notDefaultValue
void registerSettings(java.lang.String key, java.lang.Object defaultValue, boolean loadInitialSettings, boolean applySettingsChanges)
key
- component settings keydefaultValue
- component default valueloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or not<T extends DefaultValue> void registerSettings(java.lang.String group, java.lang.String key, java.lang.Class<T> defaultValueClass, boolean loadInitialSettings, boolean applySettingsChanges)
T
- default value typegroup
- component settings groupkey
- component settings keydefaultValueClass
- component default value classloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notDefaultValue
void registerSettings(java.lang.String group, java.lang.String key, java.lang.Object defaultValue, boolean loadInitialSettings, boolean applySettingsChanges)
group
- component settings groupkey
- component settings keydefaultValue
- component default valueloadInitialSettings
- whether to load initial available settings into the component or notapplySettingsChanges
- whether to apply settings changes to the component or notvoid registerSettings(SettingsProcessor settingsProcessor)
settingsProcessor
- component settings processorvoid unregisterSettings()
void loadSettings()
void saveSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |