^1657624621082
@
sname
JavaScript
slabel
JavaScript
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.html.Scripts
smany
true
seditCols
2
sformNoLabel
false
sinitialization
false
sgroup
code
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p><strong>作用</strong></p>

<p>用于生成JavaScript代码片段，所有能够生成JavaScript代码片段的都应注册到此子事物下。</p>

<ul>
	<li><strong>toHtml</strong><br />
	如果放在一般的HTML事物节点下，那么生成一个&lt;script type=&quot;javascript&quot;&gt;的标签，然后把代码片段放到这个标签下。<br />
	&nbsp;</li>
	<li><strong>toJavaScriptCode</strong><br />
	如果放在其他JavaScript的节点下，那么只会调用toJavaScriptCode方法生成JavaScript代码片段。</li>
</ul>

<p><strong>JavaScript注册</strong></p>

<p>所有能够生成 JavaScript代码的模型可以以child注册到xworker.html.Scripts模型下。</p>

<p><strong>重写toHtml方法</strong></p>

<p>如果一个事物继承了JavaScript并且只是用于生成JavaScript代码的，那么应该重写toHtml方法，返回在toHtml方法里返回null，可以使用NOOP动作。</p>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
sth_createIndex
true
sth_registThing
child|xworker.lang.content.StringContent
sth_registMyChilds
false
sth_registDisabled
false
sth_noThingRegistViewer
false
sth_fileMonitor
false
sth_deprecated
false
sth_mark
false
sth_registQueryOnlySelf
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sth_createIndex
  false
  sth_mark
  false
  sid
  actions
    @/@actions/@toHtml
    sname
    toHtml
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.html.base.scripts.JavaScript
    smethodName
    toHtml
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sth_mark
    false
    sid
    toHtml
    @/@actions/@toHtml1
    sname
    toJavaScriptCode
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.html.base.scripts.JavaScript
    smethodName
    toHtml
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sth_mark
    false
    sid
    toHtml1
    @/@actions/@toString
    sname
    toString
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.html.base.scripts.JavaScript
    smethodName
    toHtml
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    toString
    @/@actions/@45267
    sname
    getChildsAppendMethod
    sattributeName
    childsAppendMethod
    snotNull
    false
    sinterpretationType
    Self
    sattributeTemplate
    false
    schildsAttributeTemplate
    false
    svarScope
    Local
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdisableGlobalContext
    false
    sdebugLog
    false
    susage
    params
    sdescriptors
    xworker.lang.actions.ActionUtil/@GetString
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    45267
    @/@actions/@45268
    sname
    getCode
    sattributeName
    code
    snotNull
    false
    sinterpretationType
    Self
    sattributeTemplate
    false
    schildsAttributeTemplate
    false
    svarScope
    Local
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdisableGlobalContext
    false
    sdebugLog
    false
    susage
    params
    sdescriptors
    xworker.lang.actions.ActionUtil/@GetString
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    45268
  @/@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
  @/@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
  @/@useChildsCode
  sname
  useChildsCode
  sinputtype
  truefalse
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  private
  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_mark
  false
  sid
  useChildsCode
  @/@childsAppend
  sname
  childsAppendMethod
  sinputtype
  select
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  public
  sreadOnly
  false
  sdefault
  tail
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>子节点生成的代码添加到主代码（即当前模型生成的代码）的方式。</p>

<ul>
	<li><strong>head</strong><br />
	添加到头部。</li>
	<li><strong>tail</strong><br />
	添加到末尾。</li>
	<li><strong>replace</strong><br />
	主代码中含有%%xxx%%的标记，如果子节点名是xxx，那么用子节点生成的代码替换%%xxx%%部分。</li>
</ul>

<p>&nbsp; &nbsp;</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_noThingRegistViewer
  false
  sth_fileMonitor
  false
  sth_mark
  false
  sth_registQueryOnlySelf
  false
  sjson_isArray
  false
  sid
  childsAppend
    @/@childsAppend/@head
    sname
    head
    svalue
    head
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    head
    @/@childsAppend/@tail
    sname
    tail
    svalue
    tail
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    tail
    @/@childsAppend/@replace
    sname
    replace
    svalue
    replace
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    replace
  @/@code
  sname
  code
  sinputtype
  textarea
  sinputattrs
  codeName=javascript codeType=javascript wrap=false fillBoth=true cols= rows=
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_mark
  false
  sid
  code
  @/@JavaScriptFunction
  sname
  JavaScriptFunction
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.html.base.scripts.JavaScriptFunction
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sth_createIndex
  false
  sth_mark
  false
  sid
  JavaScriptFunction
  @/@Code
  sname
  Code
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.html.base.scripts.Code
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sth_createIndex
  false
  sth_mark
  false
  sid
  Code
  @/@sswtMenus
  sname
  sswtMenus
  sdescriptors
  xworker.lang.MetaDescriptor3/@swtMenus
  sextends
  xworker.extjs.ExtJs/@sswtMenus
  sid
  sswtMenus
