| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final Preferences | |
| private final HashMap |
| Access | Constructor and Description |
|---|---|
| public | SessionManager(Preferences
the preferences used for persisting the property value preferences)Constructs a new session manager that will use the passed in preferences. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private String | |
| public final Preferences | Returns: the preferencesReturns the preferences object used for persisting the property values. |
| private void | |
| public void | register(String
the path to use for the property (e.g. "divider.location"). Paths must
be unique for all persisted properties. path, DoubleProperty the property to persist and restore across user sessions property)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. |
| public void | register(String
the path to use for the property (e.g. "divider.location"). Paths must
be unique for all persisted properties. path, IntegerProperty the property to persist and restore across user sessions property)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. |
| public void | register(String
the path to use for the property (e.g. "divider.location"). Paths must
be unique for all persisted properties. path, FloatProperty the property to persist and restore across user sessions property)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. |
| public void | register(String
the path to use for the property (e.g. "divider.location"). Paths must
be unique for all persisted properties. path, LongProperty the property to persist and restore across user sessions property)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. |
| public void | register(String
the path to use for the property (e.g. "divider.location"). Paths must
be unique for all persisted properties. path, BooleanProperty the property to persist and restore across user sessions property)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. |
| public void | register(String
the path to use for the property (e.g. "divider.location"). Paths must
be unique for all persisted properties. path, StringProperty the property to persist and restore across user sessions property)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. |
| public void | register(String
the path to use for the property (e.g. "divider.location"). Paths must
be unique for all persisted properties. path, ObjectProperty<Color> the property to persist and restore across user sessions property)Registers a color property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session. |
| public void | unregister(Property<T>
the property to unregister property)Unregisters all listeners created by SessionManager for the specified property. |
| public void |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| preferences | back to summary |
|---|---|
| private final Preferences preferences | |
| propertyToListeners | back to summary |
|---|---|
| private final HashMap<Property<T>, ArrayList<ChangeListener<T>>> propertyToListeners | |
| SessionManager | back to summary |
|---|---|
| public SessionManager(Preferences preferences) Constructs a new session manager that will use the passed in preferences.
| |
| addListener | back to summary |
|---|---|
| private void addListener(Property<T> property, ChangeListener<T> listener) | |
| colorToHexRGBA | back to summary |
|---|---|
| private String colorToHexRGBA(Color color) | |
| getPreferences | back to summary |
|---|---|
| public final Preferences getPreferences() Returns the preferences object used for persisting the property values.
| |
| putPropertyValueIntoPreferences | back to summary |
|---|---|
| private void putPropertyValueIntoPreferences(String path, Property<T> property) | |
| register | back to summary |
|---|---|
| public void register(String path, DoubleProperty property) 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.
| |
| register | back to summary |
|---|---|
| public void register(String path, IntegerProperty property) 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.
| |
| register | back to summary |
|---|---|
| public void register(String path, FloatProperty property) 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.
| |
| register | back to summary |
|---|---|
| public void register(String path, LongProperty property) 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.
| |
| register | back to summary |
|---|---|
| public void register(String path, BooleanProperty property) 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.
| |
| register | back to summary |
|---|---|
| public void register(String path, StringProperty property) 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.
| |
| register | back to summary |
|---|---|
| public void register(String path, ObjectProperty<Color> property) Registers a color property so that any changes made to that property will be persisted in the user's preferences and restored for the next client session.
| |
| unregister | back to summary |
|---|---|
| public void unregister(Property<T> property) Unregisters all listeners created by SessionManager for the specified property.
| |
| unregisterAll | back to summary |
|---|---|
| public void unregisterAll() Unregisters all listeners created by SessionManager. | |