public class TreeEditor extends DictContainedCustomWriteAbleEditor implements DataControl
FieldEditor.DependenceNameSpace
限定符和类型 | 字段和说明 |
---|---|
protected static java.lang.String |
EVENT_NODE_ADD |
protected TreeAttr |
treeAttr
richer:Tree的显示属性
|
protected TreeNodeAttr[] |
treeNodeAttr
richer:Tree的节点信息
|
dependenceMap, dictionary
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
构造器和说明 |
---|
TreeEditor() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回button的配置信息
|
JSONArray |
createJSONData(TemplateSessionIDInfo sessionIDInfor,
Calculator c,
javax.servlet.http.HttpServletRequest req)
加载treeEditor的数据。
|
void |
createValueResult(DataControl widget,
Calculator widgetCalculator,
JSONObject widgetResult,
JSONObject attrSourceCache)
获取控件结果
|
java.lang.Object |
dealWithPresentableValue(java.lang.String value)
控件所在单元格设置了形态的话,某些控件需要对value值特殊处理,
比如树控件可能需要将字符串当成json格式解析
其他类似有类似需求,就要重写此方法
|
java.lang.String[] |
dependence(CalculatorProvider ca)
获取当前对象对参数的依赖关系
|
boolean |
equals(java.lang.Object obj) |
protected java.util.Map |
getConvertMap()
视图树删除了编辑前 编辑后 编辑结束事件 需要做兼容 都转化成click事件
|
java.lang.String |
getDataBindDefaultValue(Calculator calculator)
当控件值是绑定字段时,计算控件值用于给参数赋默认值
|
TableDataDictionary |
getDictionary()
数据字典
|
java.lang.String |
getFormatText()
获取控件设置的format
|
java.util.List<LayerConfig> |
getLayerConfigs() |
java.lang.Object |
getModuleValue(java.lang.Object text,
Calculator c,
TemplateSessionIDInfo sessionIDInfor,
javax.servlet.http.HttpServletRequest req)
根据传入的值获取实际值,传入的值为显示值或实际值都可以
|
java.lang.Object |
getNodeOrDict() |
TableData |
getTableData()
get table Data
|
TreeAttr |
getTreeAttr()
获取树属性
|
TreeNodeAttr[] |
getTreeNodeAttr()
获取树节点属性
|
int[] |
getValueType()
返回支持的控件值类型
|
WidgetValue |
getWidgetValue()
获取控件值
|
java.lang.String |
getXType()
get type
|
protected boolean |
hasChildrenForLayerBuild(Calculator c,
int treeLayer,
java.util.Map layerMap)
客户通过控件联动sql 实现显示层数控制
只通过this.treeNodeAttr.length !
|
boolean |
hasDataOnInit()
初始的时候就构建数据
|
protected java.util.Map |
initLayerMap(java.lang.String filter,
TemplateSessionIDInfo sessionIDInfor) |
boolean |
isAjax()
是否异步加载
|
boolean |
isAutoBuild()
自动构建
|
boolean |
isEditor()
TreeEditor视图树应该返回false
|
boolean |
isLayerBuild() |
boolean |
isMultipleSelection()
是否多选
|
boolean |
isPerformanceFirst() |
boolean |
isReturnFullPath()
是否返回全路径
|
boolean |
isSelectLeafOnly()
是否只返回叶子节点
|
JSONArray |
loadDirectTreeData(TemplateSessionIDInfo sessionIDInfor,
Calculator c,
javax.servlet.http.HttpServletRequest req)
同步加载数据 一次构建全部
|
void |
readXML(XMLableReader reader)
read XML
|
void |
setAjax(boolean use)
设置异步加载
|
void |
setAutoBuild(boolean isAutoBuild) |
void |
setLayerBuild(boolean layerBuild) |
void |
setLayerConfigs(java.util.List<LayerConfig> layerConfigs) |
void |
setMultipleSelection(boolean multipleSelection)
设置多选
|
void |
setNodeOrDict(java.lang.Object nodeOrDict) |
void |
setPerformanceFirst(boolean performanceFirst) |
void |
setReturnFullPath(boolean returnFullPath) |
void |
setSelectLeafOnly(boolean selectLeafOnly)
设置只返回叶子节点
|
void |
setTableData(TableData tableData) |
void |
setTreeAttr(TreeAttr treeAttr)
设置树属性
|
void |
setTreeNodeAttr(TreeNodeAttr[] treeNodeAttr)
设置树节点属性
|
void |
setWidgetValue(WidgetValue widgetValue)
设置控件值
|
java.lang.String[] |
supportedEvents()
支持的事件
|
void |
writeXML(XMLPrintWriter writer)
write XML
|
addParameterAndDependenceNameSpaces, checkTargetModel, checkTargetView, getDependenceMap, getEntrysIterator, getViewValue, isReloadData, removeParameterAndDependenceNameSpaces, setDependenceMap, setDictionary
isCustomData, setCustomData
getDelayTime, isRemoveRepeat, setDelayTime, setRemoveRepeat
getWaterMark, isDirectEdit, readDirectEditXML, setDirectEdit, setWaterMark
getErrorMessage, getFontSize, isAllowBlank, setAllowBlank, setErrorMessage, setFontSize, setWaterMarkConfig, toJSONString
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, getContentHeight, getContentWidth, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, 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, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
protected static final java.lang.String EVENT_NODE_ADD
protected TreeAttr treeAttr
protected TreeNodeAttr[] treeNodeAttr
public boolean isLayerBuild()
public boolean isPerformanceFirst()
public void setPerformanceFirst(boolean performanceFirst)
public void setLayerBuild(boolean layerBuild)
public java.util.List<LayerConfig> getLayerConfigs()
public void setLayerConfigs(java.util.List<LayerConfig> layerConfigs)
public java.lang.String[] supportedEvents()
supportedEvents
在类中 DirectWriteEditor
public boolean isEditor()
isEditor
在类中 FieldEditor
public boolean hasDataOnInit()
hasDataOnInit
在类中 Widget
public TreeAttr getTreeAttr()
public void setTreeAttr(TreeAttr treeAttr)
treeAttr
- treeAttrpublic TreeNodeAttr[] getTreeNodeAttr()
public void setTreeNodeAttr(TreeNodeAttr[] treeNodeAttr)
treeNodeAttr
- 树节点属性public boolean isMultipleSelection()
public void setMultipleSelection(boolean multipleSelection)
multipleSelection
- 是否多选public boolean isSelectLeafOnly()
public boolean isReturnFullPath()
public void setSelectLeafOnly(boolean selectLeafOnly)
selectLeafOnly
- 是否只返回叶子结点public void setReturnFullPath(boolean returnFullPath)
public boolean isAjax()
public void setAjax(boolean use)
use
- 是否异步加载public java.lang.String[] dependence(CalculatorProvider ca)
dependence
在接口中 DependenceProvider
dependence
在类中 FieldEditor
ca
- 当前线程的算子public JSONArray createJSONData(TemplateSessionIDInfo sessionIDInfor, Calculator c, javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
createJSONData
在类中 FieldEditor
sessionIDInfor
- 会话信息hc
- : 指定解析器req
- 请求java.lang.Exception
public void createValueResult(DataControl widget, Calculator widgetCalculator, JSONObject widgetResult, JSONObject attrSourceCache)
createValueResult
在接口中 DataControl
widget
- 控件widgetCalculator
- 算子widgetResult
- 结果jattrSourceCache
- 计算好的其他结果jpublic java.lang.String getDataBindDefaultValue(Calculator calculator)
DataControl
getDataBindDefaultValue
在接口中 DataControl
calculator
- 依赖数据public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 CustomWriteAbleRepeatEditor
repo
- : 仓库c
- : 指定解析器nodeVisitor
- 节点访问JSONException
- 抛错protected boolean hasChildrenForLayerBuild(Calculator c, int treeLayer, java.util.Map layerMap)
public JSONArray loadDirectTreeData(TemplateSessionIDInfo sessionIDInfor, Calculator c, javax.servlet.http.HttpServletRequest req) throws java.lang.Exception
sessionIDInfor
- 该类用于描述广义报表会话的信息c
- 算子req
- 请求java.lang.Exception
- eprotected java.util.Map initLayerMap(java.lang.String filter, TemplateSessionIDInfo sessionIDInfor)
protected java.util.Map getConvertMap()
getConvertMap
在类中 Observer
public void readXML(XMLableReader reader)
readXML
在接口中 XMLReadable
readXML
在类中 CustomWriteAbleRepeatEditor
reader
- XMLableReader
public void writeXML(XMLPrintWriter writer)
writeXML
在接口中 XMLWriter
writeXML
在类中 CustomWriteAbleRepeatEditor
writer
- public boolean equals(java.lang.Object obj)
equals
在类中 CustomWriteAbleRepeatEditor
obj
- public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 Widget
java.lang.CloneNotSupportedException
- epublic boolean isAutoBuild()
public void setAutoBuild(boolean isAutoBuild)
isAutoBuild
- 是否自动构建public TableData getTableData()
public void setTableData(TableData tableData)
tableData
- tableDatapublic TableDataDictionary getDictionary()
getDictionary
在接口中 DictionaryContainer
getDictionary
在类中 DictContainedCustomWriteAbleEditor
public java.lang.Object getNodeOrDict()
public void setNodeOrDict(java.lang.Object nodeOrDict)
nodeOrDict
- nOopublic WidgetValue getWidgetValue()
DataControl
getWidgetValue
在接口中 DataControl
public void setWidgetValue(WidgetValue widgetValue)
DataControl
setWidgetValue
在接口中 DataControl
widgetValue
- public int[] getValueType()
DataControl
getValueType
在接口中 DataControl
public java.lang.Object dealWithPresentableValue(java.lang.String value) throws java.lang.Exception
Widget
dealWithPresentableValue
在类中 Widget
value
- 控件值java.lang.Exception
public java.lang.Object getModuleValue(java.lang.Object text, Calculator c, TemplateSessionIDInfo sessionIDInfor, javax.servlet.http.HttpServletRequest req)
DictionaryContainer
getModuleValue
在接口中 DictionaryContainer
getModuleValue
在类中 DictContainedCustomWriteAbleEditor
text
- 传入的值c
- 算子对象public java.lang.String getFormatText()
DataControl
getFormatText
在接口中 DataControl