public class TextEditor extends RegexFieldEditor implements WaterMark, DataControl
FieldEditor.DependenceNameSpace
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
构造器和说明 |
---|
TextEditor() |
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
获取控件配置信息
|
void |
createValueResult(DataControl widget,
Calculator widgetCalculator,
JSONObject widgetResult,
JSONObject attrSourceCache)
创建控件结果
|
java.lang.String[] |
dependence(CalculatorProvider ca)
获取当前对象对参数的依赖关系
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDataBindDefaultValue(Calculator calculator)
当控件值是绑定字段时,计算控件值用于给参数赋默认值
|
java.lang.String |
getFormatText()
获取控件设置的format
|
MobileScanCodeAttr |
getMobileScanCodeAttr() |
RegExp |
getRegex()
Gets javascript regexp
|
int[] |
getValueType()
返回支持的控件值类型
|
java.lang.String |
getWaterMark() |
WidgetValue |
getWidgetValue()
获取控件值
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
int |
hashCode()
哈希值
|
boolean |
isTitleWidget()
是否可以作为标题控件
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setRegex(RegExp regex)
Sets javascript regexp
|
void |
setWaterMark(java.lang.String waterMark) |
void |
setWidgetValue(WidgetValue value)
设置控件值
|
java.lang.String[] |
supportedEvents()
获取支持的事件
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
getRegErrorMessage, setRegErrorMessage
createJSONData, getErrorMessage, getFontSize, isAllowBlank, isEditor, setAllowBlank, setErrorMessage, setFontSize, setWaterMarkConfig, toJSONString
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, clone, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, 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
public MobileScanCodeAttr getMobileScanCodeAttr()
public java.lang.String getXType()
Widget
public boolean isTitleWidget()
public RegExp getRegex()
public void setRegex(RegExp regex)
regex
- regexpublic int[] getValueType()
DataControl
getValueType
在接口中 DataControl
public void setWidgetValue(WidgetValue value)
DataControl
setWidgetValue
在接口中 DataControl
value
- 新的控件值public WidgetValue getWidgetValue()
DataControl
getWidgetValue
在接口中 DataControl
public java.lang.String getWaterMark()
getWaterMark
在接口中 WaterMark
public void setWaterMark(java.lang.String waterMark)
setWaterMark
在接口中 WaterMark
public java.lang.String[] dependence(CalculatorProvider ca)
dependence
在接口中 DependenceProvider
dependence
在类中 FieldEditor
ca
- 当前线程的算子public java.lang.String[] supportedEvents()
supportedEvents
在类中 FieldEditor
public int hashCode()
hashCode
在类中 RegexFieldEditor
public void createValueResult(DataControl widget, Calculator widgetCalculator, JSONObject widgetResult, JSONObject attrSourceCache)
createValueResult
在接口中 DataControl
widget
- 当前控件widgetCalculator
- 当前算子widgetResult
- 控件结果attrSourceCache
- 数据缓存public java.lang.String getDataBindDefaultValue(Calculator calculator)
DataControl
getDataBindDefaultValue
在接口中 DataControl
calculator
- 依赖数据public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 RegexFieldEditor
repo
- 浏览器信息c
- 指定解析器nodeVisitor
- 节点访问JSONException
public void readXML(XMLableReader reader)
readXML
在接口中 XMLReadable
readXML
在类中 RegexFieldEditor
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
writeXML
在接口中 XMLWriter
writeXML
在类中 RegexFieldEditor
writer
- the PrintWriter.public boolean equals(java.lang.Object obj)
equals
在类中 RegexFieldEditor
public java.lang.String getFormatText()
DataControl
getFormatText
在接口中 DataControl