public class ComboBox extends DictContainedCustomWriteAbleEditor implements DataControl
FieldEditor.DependenceNameSpace
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
previewLimitData
取数的时候是否根据start limit filter等属性筛选
|
protected WidgetValue |
widgetValue
控件值
|
dependenceMap, dictionary
directEdit, waterMark
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
构造器和说明 |
---|
ComboBox() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
protected DataFilter |
createDataFilter() |
DataFilter |
createDataFilterIfNeed()
初始化数据过滤
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
JSONArray |
createJSONData(TemplateSessionIDInfo sessionIDInfor,
Calculator c,
javax.servlet.http.HttpServletRequest req)
生成下拉框数据的JSONArray。
|
void |
createValueResult(DataControl widget,
Calculator widgetCalculator,
JSONObject widgetResult,
JSONObject attrSourceCache)
生成控件值
|
java.lang.String[] |
dependence(CalculatorProvider ca)
获取当前对象对参数的依赖关系
|
boolean |
equals(java.lang.Object obj) |
protected void |
filterAndPutData(Calculator c,
JSONArray ja,
int limit,
int start,
java.lang.String filter) |
java.lang.String |
getDataBindDefaultValue(Calculator calculator)
当控件值是绑定字段时,计算控件值用于给参数赋默认值
|
java.util.Map |
getDependenceMap()
获取依赖键值对
|
java.lang.String |
getFormatText()
获取控件设置的format
|
int[] |
getValueType()
返回支持的控件值类型
|
WidgetValue |
getWidgetValue()
获取控件值
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isReloadData(javax.servlet.http.HttpServletRequest req)
是否重新load数据
|
java.lang.String |
parseDefaultValue(java.lang.Object defaultValue)
将默认值转换成字符串用于控件依赖计算
|
protected void |
readDirectEditXML(XMLableReader reader) |
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setDependenceMap(java.util.Map dependenceMap)
设置依赖键值对
|
void |
setWidgetValue(WidgetValue value)
设置控件值
|
protected boolean |
supportMultiple()
是否支持多选
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
addParameterAndDependenceNameSpaces, checkTargetModel, checkTargetView, getDictionary, getEntrysIterator, getModuleValue, getViewValue, removeParameterAndDependenceNameSpaces, setDictionary
isCustomData, setCustomData
getDelayTime, isRemoveRepeat, setDelayTime, setRemoveRepeat
getWaterMark, isDirectEdit, setDirectEdit, setWaterMark, supportedEvents
getErrorMessage, getFontSize, isAllowBlank, isEditor, setAllowBlank, setErrorMessage, setFontSize, setWaterMarkConfig, toJSONString
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, 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
protected WidgetValue widgetValue
protected boolean previewLimitData
public java.util.Map getDependenceMap()
WidgetDependProvider
getDependenceMap
在接口中 WidgetDependProvider
getDependenceMap
在类中 DictContainedCustomWriteAbleEditor
public void setDependenceMap(java.util.Map dependenceMap)
WidgetDependProvider
setDependenceMap
在接口中 WidgetDependProvider
setDependenceMap
在类中 DictContainedCustomWriteAbleEditor
dependenceMap
- 键值对public java.lang.String getXType()
Widget
public int[] getValueType()
DataControl
getValueType
在接口中 DataControl
public void setWidgetValue(WidgetValue value)
DataControl
setWidgetValue
在接口中 DataControl
value
- 新的控件值public WidgetValue getWidgetValue()
DataControl
getWidgetValue
在接口中 DataControl
public DataFilter createDataFilterIfNeed()
protected DataFilter createDataFilter()
public java.lang.String[] dependence(CalculatorProvider ca)
dependence
在接口中 DependenceProvider
dependence
在类中 FieldEditor
ca
- 当前线程的算子protected boolean supportMultiple()
public JSONArray createJSONData(TemplateSessionIDInfo sessionIDInfor, Calculator c, javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
createJSONData
在类中 FieldEditor
sessionIDInfor
- 本次会话信息c
- 算子req
- http请求java.lang.Exception
- 抛出异常public boolean isReloadData(javax.servlet.http.HttpServletRequest req)
DictContainedCustomWriteAbleEditor
isReloadData
在类中 DictContainedCustomWriteAbleEditor
req
- http请求protected void filterAndPutData(Calculator c, JSONArray ja, int limit, int start, java.lang.String filter) throws java.lang.Exception
java.lang.Exception
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 JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 CustomWriteAbleRepeatEditor
repo
- : 交互环境c
- : 指定解析器nodeVisitor
- 节点访问JSONException
- 抛出异常public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 CustomWriteAbleRepeatEditor
reader
- XML读取对象XMLableReader
protected void readDirectEditXML(XMLableReader reader)
readDirectEditXML
在类中 DirectWriteEditor
public void writeXML(XMLPrintWriter writer)
Widget
writeXML
在接口中 XMLWriter
writeXML
在类中 CustomWriteAbleRepeatEditor
writer
- the PrintWriter.public boolean equals(java.lang.Object obj)
equals
在类中 CustomWriteAbleRepeatEditor
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 Widget
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public java.lang.String getFormatText()
DataControl
getFormatText
在接口中 DataControl