Example usage for com.google.gwt.storage.client StorageMap entrySet

List of usage examples for com.google.gwt.storage.client StorageMap entrySet

Introduction

In this page you can find the example usage for com.google.gwt.storage.client StorageMap entrySet.

Prototype

StorageEntrySet entrySet

To view the source code for com.google.gwt.storage.client StorageMap entrySet.

Click Source Link

Usage

From source file:com.msco.mil.client.com.sencha.gxt.desktopapp.client.persistence.StorageProvider.java

License:sencha.com license

private void dumpStorage(String reason) {
    if (GXTLogConfiguration.loggingIsEnabled() && !GWT.isProdMode()) {
        logger.finest("dumpStorage: reason=" + reason);
        if (storage == null) {
            logger.severe("local storage is not available");
        } else {//from  w w  w  .  j a v  a2  s .c  o m
            StorageMap storageMap = new StorageMap(storage);
            for (Entry<?, ?> entry : storageMap.entrySet()) {
                logger.finest("key=" + entry.getKey() + ", value=" + entry.getValue());
            }
        }
    }
}

From source file:org.roda.wui.client.common.lists.pagination.ListSelectionUtils.java

private static <T extends IsIndexed> void loadClipboardOnStorage() {
    if (storage != null) {
        StorageMap storageMap = new StorageMap(storage);
        for (Entry<String, String> entry : storageMap.entrySet()) {
            if (entry.getKey().startsWith(STORAGE_PREFIX)) {
                String className = entry.getKey().substring(STORAGE_PREFIX.length());
                try {
                    ListSelectionState<T> state = ListSelectionStateMappers.getObject(className,
                            entry.getValue());
                    clipboard.put(className, state);
                } catch (JsonDeserializationException e) {
                    // do nothing
                }//w w w.ja v a  2  s.com
            }
        }
    }
}