使用范围:UI2
Contents
class XuiDoc ($UI/system/components/designerCommon/js/xuiService#xuiDoc)
xui文档对象
Constructor Top
xuiDoc () |
Static Methods Top
void | batchCreateComponent (Object[] configs, function callBack) | |
void | batchSetCSS (String[] d_ids, Object cssConfig) | |
void | createComponent (String componentName, Object parent, Object options, function callBack) | |
void | deleteComponent (Object[] comObjOrIds, Object options, function callBack) | |
String | genaXId (String componentName) | |
Object | get (Object comObjOrId, String propName) | |
Object | getAllOperations () | |
String | getFilePath () | |
String | getNodeByDId (String did) | |
String | getTemplate (String componentName) | |
void | getXuiService (String[] d_ids, Object cssConfig) | |
void | move (Object comObjOrDId, Object targetParentObjOrDId, Object beforeObjOrId, function callBack) | |
void | repaintComponent (Object comObjOrDId, function callBack) | |
void | replaceChild (Object comObjOrDId, String childTemplate, Object options, function callBack) | |
String | selectNodes (String xpath) | |
void | set (Object comObjOrId, Object config, function callBack) | |
void | setCSS (Object comObjOrDId, Object cssConfig) | |
void | updateNodes (Object $htmlNodeList, String[] excludeProperties, Boolean isExclude, function callBack) | |
void | updateProperties (Object $htmlNodeList, String[] properties, Boolean isExclude, function callBack) | |
void | updateText (Object $htmlNodeList, Boolean isCDATA, function callBack) |
Constructor details
Top
public
xuiDoc
()
xui文档对象
public
xuiDoc
()
xui文档对象
Static Methods Detail Top
static
public
void
batchCreateComponent
(Object[] configs, function callBack)
批量创建组件
var configs = []; for(var i=0;i ' }); } //批量创建列 xuiDoc.batchCreateComponent(configs, function() { self.repaintGrid(); });
static
public
void
batchSetCSS
(String[] d_ids, Object cssConfig)
批量设置css项
static
public
void
createComponent
(String componentName, Object parent, Object options, function callBack)
创建组件
xuiDoc.createComponent(componentName,pId,{paintComponent:paintComponent,templateContent:templateText},function(node){ });
static
public
void
deleteComponent
(Object[] comObjOrIds, Object options, function callBack)
删除组件
static
public
String
genaXId
(String componentName)
生成全文档唯一的xid
static
public
Object
get
(Object comObjOrId, String propName)
获取属性值
static
public
Object
getAllOperations
()
获取所有组件的操作
static
public
String
getFilePath
()
获取当前的w文件路径
static
public
String
getNodeByDId
(String did)
根据设计时id获取模型节点
static
public
String
getTemplate
(String componentName)
获取组件模版内容
static
public
void
getXuiService
(String[] d_ids, Object cssConfig)
获取xuiService对象
static
public
void
move
(Object comObjOrDId, Object targetParentObjOrDId, Object beforeObjOrId, function callBack)
移动组件节点
static
public
void
repaintComponent
(Object comObjOrDId, function callBack)
重新绘制组件
static
public
void
replaceChild
(Object comObjOrDId, String childTemplate, Object options, function callBack)
替换子元素
static
public
String
selectNodes
(String xpath)
根据xpath选择模型节点
static
public
void
set
(Object comObjOrId, Object config, function callBack)
设置属性值,支持同时设置多个
static
public
void
setCSS
(Object comObjOrDId, Object cssConfig)
设置css项
static
public
void
updateNodes
(Object $htmlNodeList, String[] excludeProperties, Boolean isExclude, function callBack)
把js端的dom节点内容更新到java模型中
static
public
void
updateProperties
(Object $htmlNodeList, String[] properties, Boolean isExclude, function callBack)
更新js端的dom节点属性值更新到java模型中对应的dom节点上
static
public
void
updateText
(Object $htmlNodeList, Boolean isCDATA, function callBack)
把js端的dom节点文本更新到java模型对应的节点中