资 源 简 介
This project aims to provide an interface to save data in the web browser. Therefore you need to do four simple steps.
1. Get the module
Checkout this project and build the module by executing ant in the root of the source or download the gwt-client-store.jar(see download section). Make sure the module is available on the classpath.
2. Setup
Create a local storage backend to store the data in the web browser.
final Storage localStorage = Storage.getLocalStorage();final StoreBackend backend = new LocalStorageBackend(localStorage);
Or, use an in memory backend for testing your app. (All data will be lost after the application is closed)
final StoreBackend backend = new MemoryBackend();
Create the store service that provides you access to the stores.
final StoreService storeService = new JsStoreService(backend);
3. Define your ent