public class DateEditor extends DirectWriteEditor implements DataControl
FieldEditor.DependenceNameSpace
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
oldDateTimeFormat |
static java.lang.String |
oldDateTimeWidgetTag |
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
构造器和说明 |
---|
DateEditor() |
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
JSONArray |
createJSONData(TemplateSessionIDInfo sessionIDInfor,
Calculator c,
javax.servlet.http.HttpServletRequest req)
生成json数据
|
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)
当控件值是绑定字段时,计算控件值用于给参数赋默认值
|
protected java.lang.String |
getDefaultFormatText() |
java.lang.Object |
getEndDate() |
BaseFormula |
getEndDateFM() |
java.lang.Object |
getEndDateValue(Calculator ca) |
java.lang.String |
getEndText() |
java.lang.String |
getFormatText()
获取控件设置的format
|
java.lang.Object |
getStartDate() |
BaseFormula |
getStartDateFM() |
java.lang.Object |
getStartDateValue(Calculator ca) |
java.lang.String |
getStartText() |
int[] |
getValueType()
返回支持的控件值类型
|
WidgetValue |
getWidgetValue()
获取控件值
|
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isReturnDate()
是否返回日期类型
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setEndDate(java.lang.Object endDate) |
void |
setEndDateFM(BaseFormula endDateFM) |
void |
setEndText(java.lang.String endDate) |
void |
setFormatText(java.lang.String formatText) |
void |
setReturnDate(boolean returnDate) |
void |
setStartDate(java.lang.Object startDate) |
void |
setStartDateFM(BaseFormula startDateFM) |
void |
setStartText(java.lang.String startDate) |
void |
setWidgetValue(WidgetValue value)
设置控件值
|
java.lang.String[] |
supportedEvents()
支持的事件
|
java.lang.Object |
value2Config(java.lang.Object value,
CalculatorProvider ca)
转换为config信息的value有时候需要做特殊处理,这里将value转换为设定的日期类型
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
getWaterMark, isDirectEdit, readDirectEditXML, setDirectEdit, setWaterMark
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, hashCode, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toImage, toString, updateChildBounds
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public static java.lang.String oldDateTimeWidgetTag
public static java.lang.String oldDateTimeFormat
public java.lang.String getXType()
Widget
public java.lang.String getFormatText()
DataControl
getFormatText
在接口中 DataControl
public void setFormatText(java.lang.String formatText)
public int[] getValueType()
DataControl
getValueType
在接口中 DataControl
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.lang.Object getStartDateValue(Calculator ca) throws java.lang.Exception
java.lang.Exception
public java.lang.Object getEndDateValue(Calculator ca) throws java.lang.Exception
java.lang.Exception
public java.lang.Object getStartDate()
public void setStartDate(java.lang.Object startDate)
public java.lang.Object getEndDate()
public void setEndDate(java.lang.Object endDate)
public java.lang.String getStartText()
public void setStartText(java.lang.String startDate)
public java.lang.String getEndText()
public void setEndText(java.lang.String endDate)
public BaseFormula getStartDateFM()
public void setStartDateFM(BaseFormula startDateFM)
public BaseFormula getEndDateFM()
public void setEndDateFM(BaseFormula endDateFM)
public boolean isReturnDate()
public void setReturnDate(boolean returnDate)
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
在类中 DirectWriteEditor
repo
- 环境变量c
- 指定解析器nodeVisitor
- 节点访问JSONException
- 抛出异常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
- epublic java.lang.Object value2Config(java.lang.Object value, CalculatorProvider ca)
value2Config
在类中 Widget
value
- 值ca
- 计算器public java.lang.String[] supportedEvents()
supportedEvents
在类中 DirectWriteEditor
public boolean equals(java.lang.Object obj)
equals
在类中 DirectWriteEditor
public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 DirectWriteEditor
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget
writeXML
在接口中 XMLWriter
writeXML
在类中 DirectWriteEditor
writer
- the PrintWriter.protected java.lang.String getDefaultFormatText()