You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
706 B
26 lines
706 B
package com.fr.design.locale.impl; |
|
|
|
import com.fr.general.GeneralContext; |
|
import com.fr.general.locale.LocaleMark; |
|
|
|
import java.util.HashMap; |
|
import java.util.Locale; |
|
import java.util.Map; |
|
|
|
public class ShowOnlineWidgetMark implements LocaleMark<Boolean> { |
|
private Map<Locale, Boolean> map = new HashMap<>(); |
|
|
|
public ShowOnlineWidgetMark() { |
|
map.put(Locale.CHINA, true); |
|
map.put(Locale.TAIWAN, true); |
|
map.put(Locale.US, false); |
|
map.put(Locale.KOREA, false); |
|
map.put(Locale.JAPAN, false); |
|
} |
|
|
|
@Override |
|
public Boolean getValue() { |
|
Boolean result = map.get(GeneralContext.getLocale()); |
|
return result == null ? false : result; |
|
} |
|
} |