Example usage for com.google.gwt.i18n.client ConstantsWithLookup getMap

List of usage examples for com.google.gwt.i18n.client ConstantsWithLookup getMap

Introduction

In this page you can find the example usage for com.google.gwt.i18n.client ConstantsWithLookup getMap.

Prototype

Map<String, String> getMap(String methodName) throws MissingResourceException;

Source Link

Document

Look up Map by method name.

Usage

From source file:org.broadleafcommerce.openadmin.client.MessageManager.java

License:Apache License

@Override
public Map<String, String> getMap(String methodName) throws MissingResourceException {
    MissingResourceException backup = null;
    for (int j = constants.size() - 1; j >= 0; j--) {
        ConstantsWithLookup constant = constants.get(j);
        try {/*w  w w . j  ava2s .  co m*/
            Map<String, String> temp = constant.getMap(methodName);
            return temp;
        } catch (MissingResourceException e) {
            backup = e;
        }
    }
    throw backup;
}