18 package org.turro.zkoss.locale;
20 import java.util.ArrayList;
21 import java.util.Currency;
22 import java.util.List;
23 import java.util.Locale;
24 import java.util.MissingResourceException;
25 import org.turro.string.Strings;
26 import org.turro.elephant.context.Application;
35 List<Currency> list =
new ArrayList<Currency>();
36 for(Locale l : Locale.getAvailableLocales()) {
38 Currency c = Currency.getInstance(l);
39 if(!list.contains(c)) {
49 return c ==
null ? Currency.getInstance(
"EUR") : c;
54 return Currency.getInstance(l);
61 return !Strings.isBlank(l.getISO3Country());
62 }
catch(MissingResourceException mre) {
static Locale getUsedLocale()
static List< Currency > getAvailable()
static Currency getDefault()
static Currency getDefault(Locale l)
static boolean hasValidCountry(Locale l)