类 SupportedLocalesImpl
- java.lang.Object
-
- net.wicp.tams.component.services.impl.SupportedLocalesImpl
-
- 所有已实现的接口:
ISupportedLocales
public class SupportedLocalesImpl extends Object implements ISupportedLocales
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.apache.tapestry5.http.services.Requestrequestprotected org.apache.tapestry5.http.services.RequestGlobalsrequestGlobals
-
构造器概要
构造器 构造器 说明 SupportedLocalesImpl(String locales)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringbuildUrl(String oriUrl)构建国际化的URL,如果带有contextPath表示是绝对路径,无需加更多信息, 如果没有contextPath则需加上contextPath且加上国际化StringbuildUrlAbsolute(String oriUrl)得到绝对路径net.wicp.tams.common.callback.IConvertValue<String>getConvert()得到I18NConvertnet.wicp.tams.common.callback.IConvertValue<Object>getConvert(String colName)对某个对象的colName进行国际化LocalegetCurLocale()StringgetSupportedLocales()voidsetLocale(String lang)
-
-
-
构造器详细资料
-
SupportedLocalesImpl
public SupportedLocalesImpl(@Inject @Symbol("tapestry.supported-locales") String locales)
-
-
方法详细资料
-
getSupportedLocales
public String getSupportedLocales()
- 指定者:
getSupportedLocales在接口中ISupportedLocales
-
setLocale
public void setLocale(String lang)
- 指定者:
setLocale在接口中ISupportedLocales
-
getCurLocale
public Locale getCurLocale()
- 指定者:
getCurLocale在接口中ISupportedLocales
-
buildUrl
public String buildUrl(String oriUrl)
构建国际化的URL,如果带有contextPath表示是绝对路径,无需加更多信息, 如果没有contextPath则需加上contextPath且加上国际化- 指定者:
buildUrl在接口中ISupportedLocales
-
buildUrlAbsolute
public String buildUrlAbsolute(String oriUrl)
从接口复制的说明:ISupportedLocales得到绝对路径- 指定者:
buildUrlAbsolute在接口中ISupportedLocales- 返回:
-
getConvert
public net.wicp.tams.common.callback.IConvertValue<String> getConvert()
从接口复制的说明:ISupportedLocales得到I18NConvert- 指定者:
getConvert在接口中ISupportedLocales- 返回:
-
getConvert
public net.wicp.tams.common.callback.IConvertValue<Object> getConvert(String colName)
从接口复制的说明:ISupportedLocales对某个对象的colName进行国际化- 指定者:
getConvert在接口中ISupportedLocales- 返回:
-
-