类 HtmlUtils
java.lang.Object
com.gdxsoft.easyweb.script.display.HtmlUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringcreateAttNameByValue(String name, String value) 如果名称为空的话,根据值表达式,生成属性名称,例如:@USER_NAME = data-user-name
name = "" and value = "" return null
name = "" return data-xxx
name !static StringcreateSqListFrame(String sql, HtmlCreator htmlCreator) 重新组合ListFrame的 SQL查询语句,用于排序和查询static StringcreateSqlTreeMore(String sql, HtmlCreator htmlCreator) static StringformatValue(String format, Object oriValue, String lang) 获取Format后的值static StringgetDescription(UserXItemValues uvs, String tag, String lang) 获取描述static XItemstatic booleanhandleSignature(String imageBase64, String key, RequestValue rv, UserXItem uxi, ItemValues itemValues) 处理签名数据,将imageBase64转换为二进制
-
构造器详细资料
-
HtmlUtils
public HtmlUtils()
-
-
方法详细资料
-
createAttNameByValue
如果名称为空的话,根据值表达式,生成属性名称,例如:@USER_NAME = data-user-name
name = "" and value = "" return null
name = "" return data-xxx
name !="" return name- 参数:
name- 属性名称value- 属性参数- 返回:
- 属性名称
-
handleSignature
public static boolean handleSignature(String imageBase64, String key, RequestValue rv, UserXItem uxi, ItemValues itemValues) throws Exception 处理签名数据,将imageBase64转换为二进制- 参数:
imageBase64- 图片的Base64,data:image/png;base64,cfxx...key- 字段的基本名称,会出现
key: 原始的imageBase64
key_bin: 图片的二进制
key_length: 图片的长度
key_ext: 图片的扩展名
key_md5: 图片的md5
key_path: 图片的保存完整地址,如果设定SignPath参数
Key_path_short: 图片保存地址前缀
key_url: 图片的下载地址rv- 参数组uxi- 签名的配置信息itemValues- 替换地址信息用- 返回:
- 是否成功
- 抛出:
Exception
-
formatValue
获取Format后的值- 参数:
format-oriValue-lang-- 返回:
- 抛出:
Exception
-
getDescription
获取描述- 参数:
uvs-tag-lang-- 返回:
-
createSqListFrame
重新组合ListFrame的 SQL查询语句,用于排序和查询- 参数:
sql-- 返回:
- 抛出:
Exception
-
createSqlTreeMore
- 抛出:
Exception
-
getXItem
- 抛出:
Exception
-