public abstract class FieldEditor extends Widget
限定符和类型 | 类和说明 |
---|---|
static class |
FieldEditor.DependenceNameSpace |
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
allowBlank
允许为空
|
protected java.lang.String |
errorMessage
错误信息
|
protected int |
fontSize
字体大小
|
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
FieldEditor() |
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
JSONArray |
createJSONData(TemplateSessionIDInfo sessionIDInfor,
Calculator c,
javax.servlet.http.HttpServletRequest req)
生成控件数据的JSONArray。
|
java.lang.String[] |
dependence(CalculatorProvider c)
获取联动参数
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getErrorMessage()
Gets error message
|
int |
getFontSize() |
boolean |
isAllowBlank()
是否允许都为空
|
boolean |
isEditor()
是否为编辑器
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setAllowBlank(boolean allowBlank) |
void |
setErrorMessage(java.lang.String errorMessage)
Sets error message
|
void |
setFontSize(int size) |
static void |
setWaterMarkConfig(java.lang.String waterMark,
JSONObject jo,
Calculator c) |
java.lang.String[] |
supportedEvents()
获取支持的事件
|
static java.lang.String |
toJSONString(java.lang.Object object)
转化为json
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, clone, dealInvisible, dealWithPresentableValue, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, getXType, 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 boolean allowBlank
protected java.lang.String errorMessage
protected int fontSize
public boolean isAllowBlank()
public void setAllowBlank(boolean allowBlank)
public int getFontSize()
public void setFontSize(int size)
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- public java.lang.String[] dependence(CalculatorProvider c)
c
- 当前算子public java.lang.String[] supportedEvents()
supportedEvents
在类中 Observer
public JSONArray createJSONData(TemplateSessionIDInfo sessionIDInfor, Calculator c, javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
sessionIDInfor
- 会话信息c
- 算子req
- http请求java.lang.Exception
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 Widget
repo
- 浏览器信息c
- 指定解析器nodeVisitor
- 节点访问JSONException
public static void setWaterMarkConfig(java.lang.String waterMark, JSONObject jo, Calculator c) throws JSONException
JSONException
public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 Widget
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget
public static java.lang.String toJSONString(java.lang.Object object) throws java.lang.Exception
object
- 当前对象java.lang.Exception