public class DesktopSettingsManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
DesktopSettingsManager.WorkArea
Container for context-local data.
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BACKGROUND_COLOR
The background-color node name
|
private static java.lang.String |
BACKGROUND_IMAGE
The background-image node name
|
private static java.lang.String |
BACKGROUND_OPACITY
The background opacity node name
|
private static java.lang.String |
BACKGROUND_ORIGIN
The background-origin node name
|
private static java.lang.String |
BACKGROUND_POSITION
The background-position node name
|
private static java.lang.String |
BACKGROUND_REPEAT
The background-repeat node name
|
private static java.lang.String |
BACKGROUND_SIZE
The background-size node name
|
private static java.lang.String |
DESKTOP_SETTINGS_PATH
The relative desktop node path
|
private static java.lang.String |
IMAGE_MIME_TYPE
The image-mime-type node name
|
private static ContextLocal<DesktopSettingsManager.WorkArea> |
local
Context local instance of this class.
|
private static java.util.logging.Logger |
LOG
The class logger
|
private static java.lang.String |
LOGIN_FORM_SETTINGS_PATH
The relative login-form node path
|
Modifier | Constructor and Description |
---|---|
private |
DesktopSettingsManager()
The constructor is private, this instance defines a faced method to get the current desktop
settings.
|
Modifier and Type | Method and Description |
---|---|
static DesktopSettings |
getDesktopSettings()
Gets the current desktop settings from the local context if it has an assigned value,
otherwise reads the current value from directory.
|
static DesktopSettings |
getLoginFormSettings()
Gets the current login form settings from the local context if it has an assigned value,
otherwise reads the current value from directory.
|
private static DesktopSettings |
readDesktopSettings(java.lang.String anchor)
Reads the desktop settings from the directory using the given relative path to its holder
that has the target desktop settings.
|
private static final java.lang.String DESKTOP_SETTINGS_PATH
private static final java.lang.String LOGIN_FORM_SETTINGS_PATH
private static final java.lang.String BACKGROUND_COLOR
private static final java.lang.String BACKGROUND_OPACITY
private static final java.lang.String BACKGROUND_IMAGE
private static final java.lang.String BACKGROUND_ORIGIN
private static final java.lang.String BACKGROUND_POSITION
private static final java.lang.String BACKGROUND_SIZE
private static final java.lang.String BACKGROUND_REPEAT
private static final java.lang.String IMAGE_MIME_TYPE
private static final java.util.logging.Logger LOG
private static final ContextLocal<DesktopSettingsManager.WorkArea> local
private DesktopSettingsManager()
public static DesktopSettings getDesktopSettings()
public static DesktopSettings getLoginFormSettings()
private static DesktopSettings readDesktopSettings(java.lang.String anchor)
anchor
- The relative path for the target desktop settings.