^1640742915291
@
sname
TreeFunctions
slabel
TreeFunctions
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
  @/@TreeToOpenTab
  sname
  OpenTab
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  TreePanel.tab
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>点击树节点在一个TabFolder中打开一个Tab。</p>
<p>需要使用XWorker中的treeLoader，或者tree节点有如下属性：</p>
<p>node.attributes.tabId，node.attributes.url，node.attributes.dataId</p>
#$@text#$@
  sth_createIndex
  true
  sth_registThing
  child|xworker.extjs.Function
  sth_mark
  false
  sid
  TreeToOpenTab
    @/@TreeToOpenTab/@actions
    sname
    actions
    slabel
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sid
    actions
      @/@TreeToOpenTab/@actions/@toJavaScriptCode1
      sname
      toJavaScriptCode
      schangeSelf
      true
      sselfVarName
      data
      sinterpretationType
      Self
      svarScope
      Local
      sdescriptors
      xworker.lang.actions.Actions/@ActionGroup
      sid
      toJavaScriptCode1
        @/@TreeToOpenTab/@actions/@toJavaScriptCode1/@actions
        sname
        actions
        sdescriptors
        xworker.lang.actions.Begin/@actions
        sid
        actions
          @/@TreeToOpenTab/@actions/@toJavaScriptCode1/@actions/@toJavaScriptCode
          sname
          toTemplate
          stype
          freemarker
          svarScope
          Local
          stemplateEncoding
          UTF-8
          soutputEncoding
          UTF-8
          StemplateCode
#$@text#$@
if(!${data.treeNodeName?if_exists}.attributes.url){
    return;
}

var xr = Ext.ns('Ext.xworker.remote');
var tab = Ext.getCmp('${data.tabName?if_exists}');
xr.openTabItem(${data.treeNodeName?if_exists}.attributes.tabId, 
    ${data.treeNodeName?if_exists}.attributes.url, 
    tab, 
    {id : ${data.treeNodeName?if_exists}.attributes.dataId});
#$@text#$@
          sinterpretationType
          Self
          sdescriptors
          xworker.core.text.TextTemplate
          sid
          toJavaScriptCode
    @/@TreeToOpenTab/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@TreeToOpenTab/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@TreeToOpenTab/@treeNodeName
    sname
    treeNodeName
    sreadOnly
    false
    sdefault
    node
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    treeNodeName
    @/@TreeToOpenTab/@tabName
    sname
    tabName
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    tabName
    @/@TreeToOpenTab/@sswtMenus
    sname
    sswtMenus
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus
    sextends
    xworker.extjs.ExtJs/@sswtMenus
    sid
    sswtMenus
  @/@AddTreeNode
  sname
  AddTreeNode
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  TreePanel
  smodifier
  public
  sinheritDescription
  false
  sth_createIndex
  true
  sth_registThing
  child|xworker.extjs.Function
  sth_mark
  false
  sid
  AddTreeNode
    @/@AddTreeNode/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sth_mark
    false
    sid
    actions
      @/@AddTreeNode/@actions/@toJavaScriptCode1
      sname
      toJavaScriptCode
      schangeSelf
      true
      sselfVarName
      data
      sinterpretationType
      Self
      svarScope
      Local
      sdescriptors
      xworker.lang.actions.Actions/@ActionGroup
      sid
      toJavaScriptCode1
        @/@AddTreeNode/@actions/@toJavaScriptCode1/@actions
        sname
        actions
        sdescriptors
        xworker.lang.actions.Begin/@actions
        sid
        actions
          @/@AddTreeNode/@actions/@toJavaScriptCode1/@actions/@toJavaScriptCode
          sname
          toTemplate
          stype
          freemarker
          svarScope
          Local
          stemplateEncoding
          UTF-8
          soutputEncoding
          UTF-8
          StemplateCode
#$@text#$@
<#assign tree = data.treeVarName?if_exists/>
<#-- 树变量 -->
<#if !data.getBoolean("useVar")>
var ${tree} = Ext.getCmp(${data.treeId?if_exists});
</#if>

<#-- 选中的树节点 -->
var selectedNode = ${tree}.getSelectionModel().getSelectedNode();
if(selectedNode){
    var selectedParentNode = null;
    <#if data.type?exists && data.type == "brother">
    selectedParentNode = selectedNode.parentNode;
    </#if>
    
    var newNode = new Ext.tree.TreeNode({
<@getNodeAttr data=data attr="text" name="nodeText"/>
<@getNodeAttr data=data attr="href" name="nodeHref"/>
<@getNodeAttr data=data attr="hrefTarget" name="nodeHrefTarget"/>
<@getNodeAttr data=data attr="icon" name="nodeIcon"/>
<@getNodeAttr data=data attr="iconCls" name="nodeIconCls"/>
<@getNodeAttr data=data attr="id" name="nodeId"/>
<@getNodeAttr data=data attr="leaf" name="nodeLeaf"/>
<@getNodeAttr data=data attr="dataId" name="nodeDataId"/>         
<@getNodeAttr data=data attr="tabId" name="nodeTabId"/>         
<@getNodeAttr data=data attr="url" name="nodeUrl"/>        
<@getNodeAttr data=data attr="expandable" name="nodeExpandable"/> 
       expanded:false,    
        abcd__ : 'do not remove this, it\'s ensure node ok',
        attributes:{
<@getNodeAttr data=data attr="text" name="nodeText"/>
<@getNodeAttr data=data attr="id" name="nodeId"/>
<@getNodeAttr data=data attr="dataId" name="nodeDataId"/>         
<@getNodeAttr data=data attr="tabId" name="nodeTabId"/>         
<@getNodeAttr data=data attr="url" name="nodeUrl"/>        
        }
    });
    
    if (selectedParentNode == null) {
        selectedNode.appendChild(newNode);
    } else {
        selectedParentNode.insertBefore(newNode, selectedNode);
    }
}else{
    alert('没有选中的树节点，path=${data.getMetadata().getPath()}');
}
<#macro getNodeAttr data attr name>
<#if data.getString(name)?exists && data.getString(name) != "">
        ${attr} : ${data.getString(name)},
</#if>
</#macro>
#$@text#$@
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sdisableGlobalContext
          false
          sdescriptors
          xworker.core.text.TextTemplate
          sid
          toJavaScriptCode
    @/@AddTreeNode/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    name
    @/@AddTreeNode/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    label
    @/@AddTreeNode/@useVar
    sname
    useVar
    sinputtype
    truefalse
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    useVar
    @/@AddTreeNode/@treeId
    sname
    treeId
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    treeId
    @/@AddTreeNode/@treeVarName
    sname
    treeVarName
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    treeVarName
    @/@AddTreeNode/@type
    sname
    type
    sinputtype
    select
    sreadOnly
    false
    sdefault
    child
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    type
      @/@AddTreeNode/@type/@child
      sname
      child
      svalue
      child
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sth_mark
      false
      sid
      child
      @/@AddTreeNode/@type/@brother
      sname
      brother
      svalue
      brother
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sth_mark
      false
      sid
      brother
    @/@AddTreeNode/@nodeText
    sname
    nodeText
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeText
    @/@AddTreeNode/@nodeHref
    sname
    nodeHref
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeHref
    @/@AddTreeNode/@nodeHrefTarget
    sname
    nodeHrefTarget
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeHrefTarget
    @/@AddTreeNode/@nodeIcon
    sname
    nodeIcon
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeIcon
    @/@AddTreeNode/@nodeIconCls
    sname
    nodeIconCls
    ssize
    40
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeIconCls
    @/@AddTreeNode/@nodeId
    sname
    nodeId
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeId
    @/@AddTreeNode/@nodeLeaf
    sname
    nodeLeaf
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeLeaf
    @/@AddTreeNode/@nodeDataId
    sname
    nodeDataId
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeDataId
    @/@AddTreeNode/@nodeTabId
    sname
    nodeTabId
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeTabId
    @/@AddTreeNode/@nodeUrl
    sname
    nodeUrl
    ssize
    60
    scolspan
    2
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeUrl
    @/@AddTreeNode/@nodeExpandable
    sname
    nodeExpandable
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    nodeExpandable
    @/@AddTreeNode/@sswtMenus
    sname
    sswtMenus
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus
    sextends
    xworker.extjs.ExtJs/@sswtMenus
    sid
    sswtMenus
  @/@UpdateTreeNode
  sname
  UpdateTreeNode
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  TreePanel
  smodifier
  public
  sinheritDescription
  false
  sth_createIndex
  true
  sth_registThing
  child|xworker.extjs.Function
  sth_mark
  false
  sid
  UpdateTreeNode
    @/@UpdateTreeNode/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sth_mark
    false
    sid
    actions
      @/@UpdateTreeNode/@actions/@toJavaScriptCode1
      sname
      toJavaScriptCode
      schangeSelf
      true
      sselfVarName
      data
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdescriptors
      xworker.lang.actions.Actions/@ActionGroup
      sid
      toJavaScriptCode1
        @/@UpdateTreeNode/@actions/@toJavaScriptCode1/@actions
        sname
        actions
        sdescriptors
        xworker.lang.actions.Begin/@actions
        sid
        actions
          @/@UpdateTreeNode/@actions/@toJavaScriptCode1/@actions/@toJavaScriptCode
          sname
          toTemplate
          stype
          freemarker
          svarScope
          Local
          stemplateEncoding
          UTF-8
          soutputEncoding
          UTF-8
          StemplateCode
#$@text#$@
<#assign tree = data.treeVarName?if_exists/>
<#-- 树变量 -->
<#if !data.getBoolean("useVar")>
var ${tree} = Ext.getCmp(${data.treeId?if_exists});
</#if>

<#-- 选中的树节点 -->
<#if data.nodeId?exists && data.nodeId != "">
var selectedNode = ${tree}.getNodeById(${data.nodeId});
<#else>
var selectedNode = ${tree}.getSelectionModel().getSelectedNode();
</#if>
if(selectedNode){
    <#if data.nodeText?exists && data.nodeText != "">
    selectedNode.setText(${data.nodeText});    
    </#if>
    <#if data.nodeHref?exists && data.nodeHref != "">
    selectedNode.setHref(${data.nodeHref});
    </#if>
    <#if data.nodeCls?exists && data.nodeCls != "">
    selectedNode.setCls(${data.nodeCls});
    </#if>
    <#if data.nodeIcon?exists && data.nodeIcon != "">
    selectedNode.setIcon(${data.nodeIcon});
    </#if>
    <#if data.nodeIconCls?exists && data.nodeIconCls != "">
    selectedNode.setIconCls(${data.nodeIconCls});
    </#if>
    <#if data.nodeNewId?exists && data.nodeNewId != "">
    selectedNode.setId(${data.nodeNewId});
    </#if>
    <#if data.nodeToolTip?exists && data.nodeToolTip != "">
    selectedNode.setToolTip(${data.nodeToolTip});
    </#if>
    <#if data.nodeDataId?exists && data.nodeDataId != "">
    selectedNode.attributes.dataId = ${data.nodeDataId};
    </#if>
    <#if data.nodeTabId?exists && data.nodeTabId != "">
    selectedNode.attributes.tabId = ${data.nodeTabId};
    </#if>
    <#if data.nodeUrl?exists && data.nodeUrl != "">
    selectedNode.attributes.url = ${data.nodeUrl};
    </#if>
}else{
    alert('没有选中的树节点，path=${data.getMetadata().getPath()}');
}
#$@text#$@
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sdisableGlobalContext
          false
          sdescriptors
          xworker.core.text.TextTemplate
          sid
          toJavaScriptCode
    @/@UpdateTreeNode/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    name
    @/@UpdateTreeNode/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    label
    @/@UpdateTreeNode/@useVar
    sname
    useVar
    sinputtype
    truefalse
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    useVar
    @/@UpdateTreeNode/@treeId
    sname
    treeId
    ssize
    40
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    treeId
    @/@UpdateTreeNode/@treeVarName
    sname
    treeVarName
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    treeVarName
    @/@UpdateTreeNode/@nodeText
    sname
    nodeText
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeText
    @/@UpdateTreeNode/@nodeHref
    sname
    nodeHref
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeHref
    @/@UpdateTreeNode/@nodeHrefTarget
    sname
    nodeCls
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeHrefTarget
    @/@UpdateTreeNode/@nodeIcon
    sname
    nodeIcon
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeIcon
    @/@UpdateTreeNode/@nodeIconCls
    sname
    nodeIconCls
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeIconCls
    @/@UpdateTreeNode/@nodeId
    sname
    nodeId
    ssize
    60
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeId
    @/@UpdateTreeNode/@treeNodeId
    sname
    nodeNewId
    ssize
    60
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>如果为空删除树当前的节点，否则删除符合条件的节点。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    treeNodeId
    @/@UpdateTreeNode/@nodeLeaf
    sname
    nodeToolTip
    ssize
    60
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeLeaf
    @/@UpdateTreeNode/@nodeDataId
    sname
    nodeDataId
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeDataId
    @/@UpdateTreeNode/@nodeTabId
    sname
    nodeTabId
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeTabId
    @/@UpdateTreeNode/@sswtMenus
    sname
    sswtMenus
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus
    sextends
    xworker.extjs.ExtJs/@sswtMenus
    sid
    sswtMenus
    @/@UpdateTreeNode/@nodeUrl
    sname
    nodeUrl
    ssize
    60
    scolspan
    2
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    nodeUrl
  @/@DeleteTreeNode
  sname
  DeleteTreeNode
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  TreePanel
  smodifier
  public
  sinheritDescription
  false
  sth_createIndex
  true
  sth_registThing
  child|xworker.extjs.Function
  sth_mark
  false
  sid
  DeleteTreeNode
    @/@DeleteTreeNode/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sth_mark
    false
    sid
    actions
      @/@DeleteTreeNode/@actions/@toJavaScriptCode1
      sname
      toJavaScriptCode
      schangeSelf
      true
      sselfVarName
      data
      sinterpretationType
      Self
      sattributeTemplate
      false
      schildsAttributeTemplate
      false
      svarScope
      Local
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdisableGlobalContext
      false
      sdescriptors
      xworker.lang.actions.Actions/@ActionGroup
      sid
      toJavaScriptCode1
        @/@DeleteTreeNode/@actions/@toJavaScriptCode1/@actions
        sname
        actions
        sdescriptors
        xworker.lang.actions.Begin/@actions
        sid
        actions
          @/@DeleteTreeNode/@actions/@toJavaScriptCode1/@actions/@toJavaScriptCode
          sname
          toTemplate
          stype
          freemarker
          svarScope
          Local
          stemplateEncoding
          UTF-8
          soutputEncoding
          UTF-8
          StemplateCode
#$@text#$@
<#assign tree = data.treeVarName?if_exists/>
<#-- 树变量 -->
<#if !data.getBoolean("useVar")>
var ${tree} = Ext.getCmp(${data.treeId?if_exists});
</#if>

<#-- 移除选中的树节点 -->
<#if data.treeNodeId?exists && data.treeNodeId != "">
var node = ${tree}.getNodeById(${data.treeNodeId});
if(node){
    node.remove();
}
<#else>
var selectedNode = ${tree}.getSelectionModel().getSelectedNode();
selectedNode.remove();
</#if>
#$@text#$@
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sdisableGlobalContext
          false
          sdescriptors
          xworker.core.text.TextTemplate
          sid
          toJavaScriptCode
    @/@DeleteTreeNode/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    name
    @/@DeleteTreeNode/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    label
    @/@DeleteTreeNode/@useVar
    sname
    useVar
    sinputtype
    truefalse
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    useVar
    @/@DeleteTreeNode/@treeId
    sname
    treeId
    ssize
    40
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    treeId
    @/@DeleteTreeNode/@treeVarName
    sname
    treeVarName
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    tree
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    treeVarName
    @/@DeleteTreeNode/@treeNodeId
    sname
    treeNodeId
    ssize
    60
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>如果为空删除树当前的节点，否则删除符合条件的节点。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    treeNodeId
    @/@DeleteTreeNode/@sswtMenus
    sname
    sswtMenus
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus
    sextends
    xworker.extjs.ExtJs/@sswtMenus
    sid
    sswtMenus
