XStore and XStoreItem are provided to allow for very easy application persistence in JavaFX without having to format and retrieve data, in addition to management of the stores
Features
As many stores as required may be defined as in the two below, store1 in file TestStore1 and store2 in file TestStore2.
Each store may contain any mix of Integer, Float/Number, Boolean, String or Duration variables or sequences.
It is anticipated that these will then be bound with inverse to the required script variable, as in the example code.
Defaults for reset may be specified for initialisation when first creating and for any store reset that may be carried out.
Various functions are provided to allow:
Reset any individual item
Reset all items in a store
Reload a store
Force a store save
Delete a store
List Stores and StoreItems (diagnostic)
There is also an option to save the store on application exit. This is useful to make sure that settings are saved between application invocations, but will prevent the XStore object from being garbage collected while active.
Note - Durations will be stored and retrieved in milliSeconds.