public abstract class ParentPage extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
contextPath |
protected net.wicp.tams.common.callback.IConvertValue |
I18NConvert |
protected org.apache.tapestry5.services.javascript.JavaScriptSupport |
javaScriptSupport |
protected String |
lan |
protected org.apache.tapestry5.commons.Messages |
messages |
protected net.wicp.tams.common.callback.IConvertValue |
proColLan |
protected IReq |
req |
protected org.apache.tapestry5.http.services.Request |
request |
protected org.apache.tapestry5.http.services.RequestGlobals |
requestGlobals |
protected javax.servlet.ServletContext |
servletContext |
protected ISupportedLocales |
supportedLocales |
| 构造器和说明 |
|---|
ParentPage() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
D(String path)
把某个时间字段格式化为yyyy-MM-dd
|
String |
getColLan(String colName)
如 itemName 返回 "itemName_zh,itemName"
|
protected String |
getJsonForGridAliasForI18n(List<?> fromList,
long recordNum,
String... convertTitles)
支持国际化的grid
|
protected String |
getJsonForGridForI18n(List<?> fromList,
String[] titles,
long recordNum,
String... convertTitles)
支持国际化 的grid
|
String |
L(String path)
国际化方法 可以把数据库取出来的值进行国际化 eg:${L('order.channel')}
|
String |
LK(String key,
Object... param)
对具的key值进行国际化,可以支持传参数,eg:${LK('Tmall',['aaa','bbb'])}
|
String |
M(String value)
金钱格式化
|
protected net.wicp.tams.common.callback.IConvertValue |
proEnumConvert(Class entityClass)
得到枚举型的转换器
|
protected org.apache.tapestry5.util.TextStreamResponse |
retErrorInfo() |
protected org.apache.tapestry5.util.TextStreamResponse |
retErrorInfo(String errmsg) |
protected org.apache.tapestry5.util.TextStreamResponse |
retStream(String str)
把指定的Str作为流返回
|
protected org.apache.tapestry5.util.TextStreamResponse |
retStreamEmpty()
返回空的grid数据流
|
protected org.apache.tapestry5.util.TextStreamResponse |
retSuccInfo() |
String |
T(String path)
把某个时间字段格式化为yyyy-MM-dd HH:mm:ss
|
@InjectService(value="locales") protected ISupportedLocales supportedLocales
@Inject protected org.apache.tapestry5.http.services.Request request
@Inject protected IReq req
@Inject protected org.apache.tapestry5.http.services.RequestGlobals requestGlobals
@Inject protected org.apache.tapestry5.commons.Messages messages
@Environmental protected org.apache.tapestry5.services.javascript.JavaScriptSupport javaScriptSupport
@Inject @Symbol(value="tapestry.context-path") @Property protected String contextPath
@Inject protected javax.servlet.ServletContext servletContext
@Property protected String lan
protected final net.wicp.tams.common.callback.IConvertValue I18NConvert
protected net.wicp.tams.common.callback.IConvertValue proColLan
public String L(String path)
path - 要国际化的值所在的路径public String LK(String key, Object... param)
key - 国际化的key值param - 所带的参数protected final String getJsonForGridForI18n(List<?> fromList, String[] titles, long recordNum, String... convertTitles)
fromList - titles - recordNum - convertTitles - 需要国际化的列会新增一列,规则为 列名+1protected final String getJsonForGridAliasForI18n(List<?> fromList, long recordNum, String... convertTitles)
fromList - recordNum - convertTitles - 需要国际化的列会新增一列,规则为 列名+1protected org.apache.tapestry5.util.TextStreamResponse retStream(String str)
str - protected org.apache.tapestry5.util.TextStreamResponse retStreamEmpty()
protected net.wicp.tams.common.callback.IConvertValue proEnumConvert(Class entityClass)
entityClass - protected org.apache.tapestry5.util.TextStreamResponse retSuccInfo()
protected org.apache.tapestry5.util.TextStreamResponse retErrorInfo()
protected org.apache.tapestry5.util.TextStreamResponse retErrorInfo(String errmsg)
Copyright © 2022. All rights reserved.