|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.settings.ComponentSettingsManager
public final class ComponentSettingsManager
This SettingsManager sub-manager registers and processes component settings auto-save/restore them on any changes within or outside of that component.
This manager should never be called directly (except the case when you register new SettingsProcessor or if you know what you are doing) to avoid any unexpected component behavior.
SettingsManager
,
SettingsManager
Constructor Summary | |
---|---|
ComponentSettingsManager()
|
Method Summary | ||
---|---|---|
static void |
initializeManager()
Initializes ComponentSettingsManager. |
|
static boolean |
isComponentSupported(java.lang.Class componentType)
Returns whether the specified component is supported or not. |
|
static boolean |
isComponentSupported(java.awt.Component component)
Returns whether the specified component is supported or not. |
|
static boolean |
isThrowExceptions()
Returns whether exceptions are thrown on inappropriate actions or not. |
|
static void |
loadSettings(java.awt.Component component)
Loads saved settings into the component if it is registered. |
|
static void |
registerComponent(java.awt.Component component,
SettingsProcessor settingsProcessor)
Registers component using the specified SettingsProcessor. |
|
static void |
registerComponent(SettingsProcessorData data)
Registers component using the specified SettingsProcessorData. |
|
static
|
registerSettingsProcessor(java.lang.Class componentType,
java.lang.Class<T> settingsProcessor)
Registers specified settings processor class for the specified component type. |
|
static void |
saveSettings()
Saves all registered components settings. |
|
static void |
saveSettings(java.awt.Component component)
Saves component settings. |
|
static void |
setThrowExceptions(boolean throwExceptions)
Sets whether throw exceptions on inappropriate actions or not. |
|
static void |
unregisterComponent(java.awt.Component component)
Unregisters component from settings auto-save. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentSettingsManager()
Method Detail |
---|
public static void initializeManager()
public static boolean isThrowExceptions()
public static void setThrowExceptions(boolean throwExceptions)
throwExceptions
- whether throw exceptions on inappropriate actions or notpublic static boolean isComponentSupported(java.awt.Component component)
component
- component
public static boolean isComponentSupported(java.lang.Class componentType)
componentType
- component type
public static <T extends SettingsProcessor> void registerSettingsProcessor(java.lang.Class componentType, java.lang.Class<T> settingsProcessor)
T
- settings processor typecomponentType
- component typesettingsProcessor
- settings processor classpublic static void registerComponent(SettingsProcessorData data)
data
- SettingsProcessorDatapublic static void registerComponent(java.awt.Component component, SettingsProcessor settingsProcessor)
component
- component to registersettingsProcessor
- component settings processorpublic static void loadSettings(java.awt.Component component)
component
- component registered for settings auto-savepublic static void saveSettings()
public static void saveSettings(java.awt.Component component)
component
- component registered for settings auto-savepublic static void unregisterComponent(java.awt.Component component)
component
- component to unregister
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |