public class SupportedLocalesImpl extends Object implements ISupportedLocales
| 构造器和说明 |
|---|
SupportedLocalesImpl(String locales) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildUrl(String oriUrl)
构建国际化的URL,如果带有contextPath表示是绝对路径,无需加更多信息,
如果没有contextPath则需加上contextPath且加上国际化
|
net.wicp.tams.commons.callback.IConvertValue<String> |
getConvert()
得到I18NConvert
|
net.wicp.tams.commons.callback.IConvertValue<Object> |
getConvert(String colName)
对某个对象的colName进行国际化
|
Locale |
getCurLocale() |
String |
getSupportedLocales() |
void |
setLocale(String lang) |
public SupportedLocalesImpl(@Inject@Symbol(value="tapestry.supported-locales")
String locales)
public String getSupportedLocales()
getSupportedLocales 在接口中 ISupportedLocalespublic void setLocale(String lang)
setLocale 在接口中 ISupportedLocalespublic Locale getCurLocale()
getCurLocale 在接口中 ISupportedLocalespublic String buildUrl(String oriUrl)
buildUrl 在接口中 ISupportedLocalespublic net.wicp.tams.commons.callback.IConvertValue<String> getConvert()
ISupportedLocalesgetConvert 在接口中 ISupportedLocalespublic net.wicp.tams.commons.callback.IConvertValue<Object> getConvert(String colName)
ISupportedLocalesgetConvert 在接口中 ISupportedLocalesCopyright © 2016. All rights reserved.