public class MultiFileEditor extends FieldEditor
FieldEditor.DependenceNameSpace
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
EVENT_UPLOAD_CALLBACK |
allowBlank, errorMessage, fontSize
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
MultiFileEditor() |
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccept() |
protected java.util.Map |
getConvertMap()
转化事件 兼容处理
|
int |
getMaxLength() |
double |
getMaxSize() |
MultiFileUploaderMobileAttr |
getMobileAttr() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isEditor()
是不是可编辑的控件
|
boolean |
isSingleFile()
是不是只支持单文件上传
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setAccept(java.lang.String accept) |
void |
setMaxLength(int maxLength) |
void |
setMaxSize(double maxSize) |
void |
setSingleFile(boolean single) |
java.lang.String[] |
supportedEvents()
控件支持的事件类型
|
boolean |
supportMobile()
移动端是否支持该控件
|
java.lang.Object |
value2Config(java.lang.Object value,
CalculatorProvider ca)
转换为config信息的value有时候需要做特殊处理,针对不同控件可能有不同的处理方式。
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
createJSONData, dependence, getErrorMessage, getFontSize, isAllowBlank, 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, toImage, toImage, toString, updateChildBounds
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public static final java.lang.String EVENT_UPLOAD_CALLBACK
public boolean isEditor()
isEditor
在类中 FieldEditor
public void setMaxLength(int maxLength)
public int getMaxLength()
public void setSingleFile(boolean single)
public boolean isSingleFile()
public void setAccept(java.lang.String accept)
public java.lang.String getAccept()
public void setMaxSize(double maxSize)
public double getMaxSize()
public java.lang.String getXType()
Widget
public MultiFileUploaderMobileAttr getMobileAttr()
public boolean supportMobile()
supportMobile
在类中 Widget
public java.lang.String[] supportedEvents()
supportedEvents
在类中 FieldEditor
protected java.util.Map getConvertMap()
Observer
getConvertMap
在类中 Observer
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 FieldEditor
repo
- 浏览器信息c
- 指定解析器nodeVisitor
- 节点访问JSONException
- 异常public java.lang.Object value2Config(java.lang.Object value, CalculatorProvider ca)
value2Config
在类中 Widget
value
- 值ca
- 计算器public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 FieldEditor
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget
writeXML
在接口中 XMLWriter
writeXML
在类中 FieldEditor
writer
- the PrintWriter.public boolean equals(java.lang.Object obj)
equals
在类中 FieldEditor