public class NumberEditor 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
构造器和说明 |
---|
NumberEditor() |
限定符和类型 | 方法和说明 |
---|---|
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
|
int |
getMaxDecimalLength() |
int |
getMaxIntegerLength() |
double |
getMaxValue() |
double |
getMinValue() |
int[] |
getValueType()
返回支持的控件值类型
|
java.lang.String |
getWaterMark() |
WidgetValue |
getWidgetValue()
获取控件值
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isAllowDecimals()
是否允许小数
|
boolean |
isAllowNegative()
是否允许负数
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setAllowDecimals(boolean allowDecimals) |
void |
setAllowNegative(boolean allowNegative) |
void |
setMaxDecimalLength(int maxDecimalLength) |
void |
setMaxIntegerLength(int maxIntegerLength) |
void |
setMaxValue(double maxValue) |
void |
setMinValue(double minValue) |
void |
setWaterMark(java.lang.String waterMark) |
void |
setWidgetValue(WidgetValue value)
设置控件值
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
getRegErrorMessage, hashCode, setRegErrorMessage
createJSONData, 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, 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 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 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 int getMaxIntegerLength()
public void setMaxIntegerLength(int maxIntegerLength)
public int getMaxDecimalLength()
public void setMaxDecimalLength(int maxDecimalLength)
public boolean isAllowDecimals()
public void setAllowDecimals(boolean allowDecimals)
public boolean isAllowNegative()
public void setAllowNegative(boolean allowNegative)
public double getMinValue()
public void setMinValue(double minValue)
public double getMaxValue()
public void setMaxValue(double maxValue)
public java.lang.String[] dependence(CalculatorProvider ca)
dependence
在接口中 DependenceProvider
dependence
在类中 FieldEditor
ca
- 当前线程的算子public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 RegexFieldEditor
repo
- 浏览器信息c
- 指定解析器nodeVisitor
- 节点访问JSONException
- epublic void readXML(XMLableReader reader)
RegexFieldEditor
readXML
在接口中 XMLReadable
readXML
在类中 RegexFieldEditor
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
RegexFieldEditor
writeXML
在接口中 XMLWriter
writeXML
在类中 RegexFieldEditor
writer
- the PrintWriter.public boolean equals(java.lang.Object obj)
equals
在类中 RegexFieldEditor
public java.lang.String getWaterMark()
getWaterMark
在接口中 WaterMark
public void setWaterMark(java.lang.String waterMark)
setWaterMark
在接口中 WaterMark
public java.lang.String getFormatText()
DataControl
getFormatText
在接口中 DataControl