public final class ComponentSettingsManager
extends java.lang.Object
| Constructor and Description |
|---|
ComponentSettingsManager() |
| Modifier and Type | Method and Description |
|---|---|
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 <T extends SettingsProcessor> |
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.
|
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 - componentpublic static boolean isComponentSupported(java.lang.Class componentType)
componentType - component typepublic 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