java.lang.Object
com.dlsc.gemsfx.util.SessionManager
A manager for storing observable values in the user preferences.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionManager(Preferences preferences) Constructs a new session manager that will use the passed in preferences. -
Method Summary
Modifier and TypeMethodDescriptionfinal PreferencesReturns the preferences object used for persisting the property values.voidRegisters a boolean property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.voidRegisters a double property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.voidRegisters a float property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.voidRegisters an integer property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.voidRegisters a long property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.voidRegisters a string property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.
-
Constructor Details
-
SessionManager
Constructs a new session manager that will use the passed in preferences.- Parameters:
preferences- the preferences used for persisting the property value
-
-
Method Details
-
getPreferences
Returns the preferences object used for persisting the property values.- Returns:
- the preferences
-
register
Registers a double property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.- Parameters:
path- the path to use for the property (e.g. "divider.location"). Paths must be unique for all persisted properties.property- the property to persist and restore across user sessions
-
register
Registers an integer property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.- Parameters:
path- the path to use for the property (e.g. "divider.location"). Paths must be unique for all persisted properties.property- the property to persist and restore across user sessions
-
register
Registers a float property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.- Parameters:
path- the path to use for the property (e.g. "divider.location"). Paths must be unique for all persisted properties.property- the property to persist and restore across user sessions
-
register
Registers a long property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.- Parameters:
path- the path to use for the property (e.g. "divider.location"). Paths must be unique for all persisted properties.property- the property to persist and restore across user sessions
-
register
Registers a boolean property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.- Parameters:
path- the path to use for the property (e.g. "divider.location"). Paths must be unique for all persisted properties.property- the property to persist and restore across user sessions
-
register
Registers a string property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.- Parameters:
path- the path to use for the property (e.g. "divider.location"). Paths must be unique for all persisted properties.property- the property to persist and restore across user sessions
-