^1648626022963
@
sname
view
slabel
界面
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.html.Widgets
smany
true
seditCols
2
sformNoLabel
false
sinitialization
false
smodifier
public
sinheritDescription
false
sicon
icons/html.png
Sdescription
#$@text#$@
<p><strong>HTML界面</strong></p>

<p>&nbsp;&nbsp;&nbsp; 通过toHtml方法可以生成HTML代码，是一个生成HTML的框架。</p>

<p><strong>如何定义界面控件</strong></p>

<p>&nbsp;&nbsp;&nbsp; 通过界面的toHtml方法转化为HTML页面代码，因此任何有toHtml的事物都可以作为界面或界面的子事物。</p>

<ul>
	<li><strong>注册</strong><br />
	新的HTML事物可以注册到xworker.html.Widgets的子事物下。<br />
	&nbsp;</li>
	<li><strong>添加引用css文件或javascript文件</strong><br />
	如果一个HTML事物需要html文档头部添加引用文件，可以参看java类xworker.html.HtmlUtil的addHeader方法。<br />
	&nbsp;</li>
	<li><strong>在HTML文档尾端添加内容</strong><br />
	比如需要放到尾端的初始化脚本等，可以参看java类xworker.html.HtmlUtil的addBottom方法。</li>
</ul>

<p><strong>JavaScript模型</strong></p>

<p>&nbsp;&nbsp;&nbsp; JavaScript事物应该注册到xworker.html.base.scripts.JavaScript模型下。</p>

<p><strong>可以重写的一些方法：</strong></p>

<ul>
	<li><strong>String getHtmlAttributes()</strong><br />
	返回&lt;html&gt;标签中的属性。<br />
	&nbsp;</li>
	<li><strong>String getTitle()</strong><br />
	返回标题，默认从属性title中获取。</li>
</ul>

<p>&nbsp;</p>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
sen_label
View
sth_createIndex
true
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
  @/@scripts
  sname
  scripts
  slabel
  scripts
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sid
  scripts
    @/@scripts/@toHtml
    sname
    toHtml
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.html.base.viewCreator
    smethodName
    toHtml
    sdisableGlobalContext
    false
    Sdescription
#$@text#$@
<p>每一个HTML都应有toHtml方法用来创建HTML字符串。</p>
<p>&nbsp;创建HTML的脚本可以提供heads、bottoms和bottomThings，heads和bottoms是需要添加到HTML的头和尾的Map （name, vlaue），bottomThings是用来创建尾的事物，会调用bottomThing的createBottom方法。</p>
#$@text#$@
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    toHtml
    @/@scripts/@showGenerateFileName
    sname
    showGenerateFileName
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.html.base.viewCreator
    smethodName
    showGenerateFileName
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    showGenerateFileName
    @/@scripts/@addHead
    sname
    addHead
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.html.base.viewCreator
    smethodName
    addHead
    Sdescription
#$@text#$@
<p>添加HTML头。</p>
<p>参数：</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; name：名称<br />
&nbsp;&nbsp;&nbsp;&nbsp; value：值</p>
<p>如：addHead.run(actionContext, [&quot;name&quot;:&quot;grid&quot;, &quot;value&quot;:&quot;&lt;script ..../&gt;&quot;]);</p>
#$@text#$@
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    addHead
    @/@scripts/@addBottom
    sname
    addBottom
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.html.base.viewCreator
    smethodName
    addBottom
    Sdescription
#$@text#$@
<p>添加HTML尾部的代码。</p>
<p>参数：</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; name：名称<br />
&nbsp;&nbsp;&nbsp;&nbsp; value：值</p>
#$@text#$@
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    addBottom
    @/@scripts/@viewHtmlCode
    sname
    viewHtmlCode
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.html.base.viewCreator
    smethodName
    viewHtmlCode
    sdisableGlobalContext
    false
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    viewHtmlCode
    @/@scripts/@getTitle
    sname
    getTitle
    sattributeName
    title
    sinterpretationType
    Self
    sattributeTemplate
    false
    schildsAttributeTemplate
    false
    svarScope
    Local
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdisableGlobalContext
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.ActionUtil/@GetString
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    getTitle
    @/@scripts/@getDoctype
    sname
    getDoctype
    sattributeName
    doctype
    sinterpretationType
    Self
    sattributeTemplate
    false
    schildsAttributeTemplate
    false
    svarScope
    Local
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdisableGlobalContext
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.ActionUtil/@GetString
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    getDoctype
    @/@scripts/@toString
    sname
    toString
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.html.base.viewCreator
    smethodName
    toHtml
    sdisableGlobalContext
    false
    Sdescription
#$@text#$@
<p>每一个HTML都应有toHtml方法用来创建HTML字符串。</p>
<p>&nbsp;创建HTML的脚本可以提供heads、bottoms和bottomThings，heads和bottoms是需要添加到HTML的头和尾的Map （name, vlaue），bottomThings是用来创建尾的事物，会调用bottomThing的createBottom方法。</p>
#$@text#$@
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction,xworker.lang.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
  @/@name
  sname
  name
  slabel
  名称
  sinputtype
  text
  sinheritDescription
  false
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  Name
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  name
  @/@belongToHtml
  sname
  belongToHtml
  slabel
  是否包含在html中
  sinputtype
  truefalse
  sdefault
  true
  sinheritDescription
  false
  sdescription
  <p>如果为true那么生成HTML的&lt;head&gt;和&lt;body&gt;，否则不包含HTML的&lt;head&gt;和&lt;body&gt;。</p>
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  BelongBody
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  belongToHtml
  @/@doctype
  sname
  doctype
  slabel
  文档类型
  ssize
  60
  sshowLabel
  true
  sreadOnly
  false
  sdefault
  <!doctype html>
  sinheritDescription
  false
  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_mark
  false
  sid
  doctype
  @/@title
  sname
  title
  slabel
  标题
  sinputtype
  text
  ssize
  40
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  Label
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  title
  @/@style
  sname
  style
  slabel
  风格
  sinputtype
  select
  sdefault
  default
  sinheritDescription
  false
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  Style
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  style
    @/@style/@default
    sname
    default
    slabel
    default
    svalue
    default
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    default
    @/@style/@classic
    sname
    classic
    slabel
    classic
    svalue
    classic
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    classic
    @/@style/@flat
    sname
    flat
    slabel
    flat
    svalue
    flat
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    flat
  @/@hasHead
  sname
  hasHead
  slabel
  是否包含头信息
  sinputtype
  truefalse
  sdefault
  false
  sinheritDescription
  false
  sdescription
  <p>当界面内容不包含HTML的body时，是否仍然生成原本Head和Botton的内容。</p>
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  HasHead
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  hasHead
  @/@hasBottom
  sname
  hasBottom
  slabel
  是否包含尾信息
  sinputtype
  truefalse
  sdefault
  false
  sinheritDescription
  false
  sdescription
  <p>如果HTML没有body，是否仍然包含自动生成的尾部信息。</p>
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  HasBottom
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  hasBottom
  @/@noCache
  sname
  noCache
  slabel
  无缓存
  sinputtype
  truefalse
  sshowLabel
  true
  sreadOnly
  false
  sdefault
  false
  sinheritDescription
  false
  sdescription
  <p>view生成的是freemarker模板，实际上到html还需要freemarker生成一次，如果无缓存，是指在freemarker哪里没有缓存，freemarker每次都会重新解析模板。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sen_label
  NoCache
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  noCache
  @/@bodyAttributes
  sname
  bodyAttributes
  slabel
  Body属性
  ssize
  60
  scolspan
  2
  sinheritDescription
  false
  sdescription
  <p>比如：class=&quot;abcd&quot;</p>
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  BodyAttributes
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  bodyAttributes
  @/@description
  sname
  description
  slabel
  描述
  sinputtype
  html
  scolspan
  2
  sinheritDescription
  false
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  Description
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  description
  @/@otherHeads
  sname
  otherHeads
  slabel
  其他头信息
  sinputtype
  codeEditor
  scolspan
  2
  sshowLabel
  true
  sinputattrs
  codeName=html codeType=html
  sreadOnly
  false
  Sdefault
#$@text#$@
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<script type="text/javascript" src="js/xworker/InnerBrowserUtil.js"></script>
#$@text#$@
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  szh_label
  OtherHeads
  sen_label
  OtherHeads
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  otherHeads
  @/@actions
  sname
  actions
  slabel
  Actions
  sdescriptors
  xworker.lang.MetaDescriptor2/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  Sdescription
#$@text#$@
<p><strong>动作集合</strong></p>

<p>&nbsp;&nbsp;&nbsp; 通过动作可以定义事物的行为，事物的行为即动作，可以用多种语言和方式编写。</p>

<p><strong>self变量</strong></p>

<p>&nbsp;&nbsp;&nbsp; 当一个动作作为一个事物的行为执行时，会把该事物以self变量传给动作。</p>

<p><strong>第一个动作集合生效</strong></p>

<p>&nbsp;&nbsp;&nbsp; 只有事物的第一个actions子节点才被认为是行为的定义集合，第二个及以后不算。</p>
#$@text#$@
  szh_label
  动作
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  Sen_description
#$@text#$@
<p><strong>Actions</strong></p>

<p>&nbsp;&nbsp;&nbsp; Use actions can define behaviors of the&nbsp;thing. Behavior is action, can be defined by many program languages or other things.</p>

<p><strong>Variable self</strong></p>

<p>&nbsp;&nbsp;&nbsp; When a action is executed as a behavior, in the actionContext will have a virable named &#39;self&#39;, self like this in java, self is it&#39;s onwer thing.</p>

<p><strong>First actions is validate</strong></p>

<p>&nbsp;&nbsp;&nbsp; Only first actions node is behaviros collections.</p>
#$@text#$@
  sth_mark
  false
  sid
  actions
    @/@actions/@name
    sname
    name
    sdescriptors
    xworker.lang.MetaDescriptor2/@attribute
    sid
    name
  @/@MenuBar
  sname
  MenuBar
  sdescriptors
  xworker.lang.MetaDescriptor3/@MenuBar
  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
  MenuBar
    @/@MenuBar/@View
    sname
    View
    ssortWeight
    0
    sdescriptors
    xworker.lang.ThingMenuBar/@Menu
    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
    View
      @/@MenuBar/@View/@viewHtmlCode
      sname
      viewHtmlCode
      slabel
      查看HTML代码
      scodeType
      html
      sactionName
      toHtml
      sdescriptors
      xworker.lang.thingmenus.Menus/@CodeWindow
      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
      viewHtmlCode
