public interface DictManager
Modifier and Type | Field and Description |
---|---|
static String |
DICT_MANAGER_BEAN_NAME |
static String |
XSTEAM_PACKAGE_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addDictLoader(DictLoader dictLoader)
添加字典加载器
|
void |
clear()
清空所有字典项
|
void |
clear(DictLoader dictLoader)
清空某一加载器的字符项
|
Cache |
getCache()
获得缓冲对象
|
Dict |
getDict(String dictTypeName,
Context context)
获取默认语言下字典类型名对应的字典对象
|
Dict |
getDict(String lang,
String dictTypeName,
Context context)
获取指定语言下字典类型名称对应的字典对象
|
void |
load()
载入字典项
|
void |
load(DictLoader dictLoader)
利用指定加载器载入字典
|
void |
setCache(Cache cache)
设置字典项保存的缓冲
|
static final String DICT_MANAGER_BEAN_NAME
static final String XSTEAM_PACKAGE_NAME
Cache getCache()
void setCache(Cache cache)
cache
- void addDictLoader(DictLoader dictLoader)
dictLoader
- 字典加载器void load(DictLoader dictLoader)
dictLoader
- 字典加载器void clear()
void clear(DictLoader dictLoader)
dictLoader
- 字典加载器void load()
Dict getDict(String dictTypeName, Context context)
dictTypeName
- 字段类型名context
- 上下文参数Copyright © 2006–2018 TinyGroup. All rights reserved.