public abstract class WriteUnableRepeatEditor extends FieldEditor implements DictionaryContainer, DataControl
FieldEditor.DependenceNameSpace
限定符和类型 | 字段和说明 |
---|---|
protected Dictionary |
model |
protected WidgetValue |
widgetValue |
allowBlank, errorMessage, fontSize
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
TYPE_BOOLEAN, TYPE_DATABINDING, TYPE_DATE, TYPE_FORMULA, TYPE_NUMBER, TYPE_STRING, TYPE_TABLEDATA
构造器和说明 |
---|
WriteUnableRepeatEditor() |
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
void |
createJSONData(Calculator c,
JSONArray ja)
生成控件数据的JSONArray
|
JSONArray |
createJSONData(TemplateSessionIDInfo sessionIDInfor,
Calculator c,
javax.servlet.http.HttpServletRequest req)
生成控件数据的JSONArray。
|
protected JSONObject |
createJSONDataByDefaultValue(java.lang.Object defaultValue,
Calculator widgetCalculator)
控件数据。
|
void |
createValueResult(DataControl widget,
Calculator widgetCalculator,
JSONObject widgetResult,
JSONObject attrSourceCache)
生成控件值信息,并放到widgetResult中
|
java.lang.String[] |
dependence(CalculatorProvider ca)
获取当前对象对参数的依赖关系
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDataBindDefaultValue(Calculator calculator)
当控件值是绑定字段时,计算控件值用于给参数赋默认值
|
java.util.Map |
getDependenceMap()
获取依赖键值对
|
Dictionary |
getDictionary() |
java.lang.Object |
getModuleValue(java.lang.Object text,
Calculator c,
TemplateSessionIDInfo sessionIDInfor,
javax.servlet.http.HttpServletRequest req)
根据传入的值获取实际值,传入的值为显示值或实际值都可以
|
java.lang.Object |
getViewValue(java.lang.Object value,
Calculator c,
TemplateSessionIDInfo sessionIDInfor,
javax.servlet.http.HttpServletRequest req)
根据传入的值获取显示值,传入的值为显示值或实际值都可以
|
WidgetValue |
getWidgetValue()
获取控件值
|
boolean |
hasDataOnInit()
某些控件需要在后台创建配置信息的时候就构建数据
而不必到web端初始化后再发送请求获取数据 如单选按钮组 复选框组 视图树 列表
|
boolean |
isRemoveRepeat()
去除重复
|
java.lang.String |
parseDefaultValue(java.lang.Object defaultValue)
将默认值转换成字符串用于控件依赖计算
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setDependenceMap(java.util.Map map)
设置依赖键值对
|
void |
setDictionary(Dictionary model) |
void |
setRemoveRepeat(boolean removeRepeat) |
void |
setWidgetValue(WidgetValue value)
设置控件值
|
abstract boolean |
supportMultiple()
是否支持多选
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
getErrorMessage, getFontSize, isAllowBlank, isEditor, setAllowBlank, setErrorMessage, setFontSize, setWaterMarkConfig, supportedEvents, toJSONString
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, clone, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, getXType, hashCode, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
getFormatText, getValueType
protected Dictionary model
protected WidgetValue widgetValue
public boolean isRemoveRepeat()
public void setRemoveRepeat(boolean removeRepeat)
public void setDictionary(Dictionary model)
setDictionary
在接口中 DictionaryContainer
public Dictionary getDictionary()
getDictionary
在接口中 DictionaryContainer
public void setWidgetValue(WidgetValue value)
DataControl
setWidgetValue
在接口中 DataControl
value
- 新的控件值public WidgetValue getWidgetValue()
DataControl
getWidgetValue
在接口中 DataControl
public java.lang.String[] dependence(CalculatorProvider ca)
dependence
在接口中 DependenceProvider
dependence
在类中 FieldEditor
ca
- 当前线程的算子public java.util.Map getDependenceMap()
WidgetDependProvider
getDependenceMap
在接口中 WidgetDependProvider
public void setDependenceMap(java.util.Map map)
WidgetDependProvider
setDependenceMap
在接口中 WidgetDependProvider
map
- 键值对public boolean hasDataOnInit()
hasDataOnInit
在类中 Widget
public void createValueResult(DataControl widget, Calculator widgetCalculator, JSONObject widgetResult, JSONObject attrSourceCache)
createValueResult
在接口中 DataControl
widget
- 控件widgetCalculator
- 算子widgetResult
- 结果attrSourceCache
- 数据缓存public java.lang.String parseDefaultValue(java.lang.Object defaultValue)
defaultValue
- 默认值变成字符串public java.lang.String getDataBindDefaultValue(Calculator calculator)
DataControl
getDataBindDefaultValue
在接口中 DataControl
calculator
- 依赖数据public abstract boolean supportMultiple()
protected JSONObject createJSONDataByDefaultValue(java.lang.Object defaultValue, Calculator widgetCalculator) throws java.lang.Exception
defaultValue
- 控件值widgetCalculator
- 解析器java.lang.Exception
public JSONArray createJSONData(TemplateSessionIDInfo sessionIDInfor, Calculator c, javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
createJSONData
在类中 FieldEditor
sessionIDInfor
- 本次会话信息c
- 算子req
- 请求java.lang.Exception
public void createJSONData(Calculator c, JSONArray ja) throws java.lang.Exception
c
- 算子ja
- 结果java.lang.Exception
- epublic JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 FieldEditor
repo
- : see Repository信息c
- : 指定解析器nodeVisitor
- 节点访问JSONException
- epublic void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 FieldEditor
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget
writeXML
在接口中 XMLWriter
writeXML
在类中 FieldEditor
writer
- the PrintWriter.public boolean equals(java.lang.Object obj)
equals
在类中 FieldEditor
public java.lang.Object getViewValue(java.lang.Object value, Calculator c, TemplateSessionIDInfo sessionIDInfor, javax.servlet.http.HttpServletRequest req)
DictionaryContainer
getViewValue
在接口中 DictionaryContainer
value
- 传入的值c
- 算子对象req
- @return 显示值public java.lang.Object getModuleValue(java.lang.Object text, Calculator c, TemplateSessionIDInfo sessionIDInfor, javax.servlet.http.HttpServletRequest req)
DictionaryContainer
getModuleValue
在接口中 DictionaryContainer
text
- 传入的值c
- 算子对象