public class SupportedLocalesImpl extends Object implements ISupportedLocales
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.tapestry5.services.Request |
request |
protected org.apache.tapestry5.services.RequestGlobals |
requestGlobals |
| 构造器和说明 |
|---|
SupportedLocalesImpl(String locales) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildUrl(String oriUrl)
构建国际化的URL,如果带有contextPath表示是绝对路径,无需加更多信息,
如果没有contextPath则需加上contextPath且加上国际化
|
String |
buildUrlAbsolute(String oriUrl)
得到绝对路径
|
net.wicp.tams.common.callback.IConvertValue<String> |
getConvert()
得到I18NConvert
|
net.wicp.tams.common.callback.IConvertValue<Object> |
getConvert(String colName)
对某个对象的colName进行国际化
|
Locale |
getCurLocale() |
String |
getSupportedLocales() |
void |
setLocale(String lang) |
@Inject protected org.apache.tapestry5.services.Request request
@Inject protected org.apache.tapestry5.services.RequestGlobals requestGlobals
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 String buildUrlAbsolute(String oriUrl)
ISupportedLocalesbuildUrlAbsolute 在接口中 ISupportedLocalespublic net.wicp.tams.common.callback.IConvertValue<String> getConvert()
ISupportedLocalesgetConvert 在接口中 ISupportedLocalespublic net.wicp.tams.common.callback.IConvertValue<Object> getConvert(String colName)
ISupportedLocalesgetConvert 在接口中 ISupportedLocalesCopyright © 2020. All rights reserved.