^1640740822440
@
sname
TreeHtmlDoc
slabel
TreeHtmlDoc
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>一个简易的HTML文档系统，所有的页面通过树形菜单索引。页面的上面是标题，左面HTML菜单树，右面是显示HTML的区域。</p>

<p><strong>需要数据库的支持。</strong></p>

<p><strong>主要功能：</strong></p>

<ul>
	<li><strong>可编辑</strong><br />
	可以添加和修改HTML文档，可以添加、删除和移动菜单的节点。<br />
	&nbsp;</li>
	<li><strong>可链接其他网页</strong><br />
	菜单节点可以引用其它网页地址。<br />
	&nbsp;</li>
	<li><strong>登录设置</strong><br />
	可以设置是否需要登录。</li>
</ul>
#$@text#$@
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  actions
    @/@actions/@httpDo
    sname
    httpDo
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.doc.treehtmldoc.TreeHtmlDocActions
    smethodName
    httpDo
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    httpDo
    @/@actions/@menu_initDb
    sname
    menu_initDb
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
//虚拟一个requestBean
def requestBean = ["docPath": currentThing.getMetadata().getPath()];

//初始化htmlNode
def htmlNode = world.getThing("xworker.doc.treehtmldoc.dataobjects.HtmlNode");
htmlNode.doAction("mapping2ddl", actionContext, ["requestBean":requestBean]);

//初始化htmlNodeKeywords
def htmlNodeKeys = world.getThing("xworker.doc.treehtmldoc.dataobjects.HtmlNodeKeywords");
htmlNodeKeys.doAction("mapping2ddl", actionContext, ["requestBean":requestBean]);

//初始化tblUser
def tblUser = world.getThing("xworker.doc.treehtmldoc.dataobjects.User");
tblUser.doAction("mapping2ddl", actionContext, ["requestBean":requestBean]);

log.info("TreeHtmlDoc database inited");
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.lang.actions.Actions/@GroovyAction
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    menu_initDb
  @/@name
  sname
  name
  sshowLabel
  true
  sreadOnly
  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
  name
  @/@label
  sname
  label
  sshowLabel
  true
  sreadOnly
  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
  label
  @/@title
  sname
  title
  ssize
  60
  sshowLabel
  true
  sreadOnly
  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
  title
  @/@titleImage
  sname
  titleImage
  sinputtype
  imageSelector
  ssize
  60
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>长高为171,31的图片。</p>
  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
  titleImage
  @/@isNeedLogin
  sname
  isNeedLogin
  sinputtype
  truefalse
  sshowLabel
  true
  sreadOnly
  false
  sdefault
  false
  sinheritDescription
  false
  sdescription
  <p>是否需要登录。</p>
  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
  isNeedLogin
  @/@dataSource
  sname
  dataSource
  sinputtype
  dataSelector
  ssize
  60
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>数据库数据源。</p>
  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
  dataSource
  @/@description
  sname
  description
  sinputtype
  html
  sshowLabel
  true
  sreadOnly
  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
  description
  @/@HeadButton
  sname
  HeadButton
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sdescription
  <p>显示在头部的按钮。</p>
  snotXmlAttribute
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  HeadButton
    @/@HeadButton/@name
    sname
    name
    sshowLabel
    true
    sreadOnly
    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
    name
    @/@HeadButton/@label
    sname
    label
    sshowLabel
    true
    sreadOnly
    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
    label
    @/@HeadButton/@url
    sname
    javascript
    ssize
    60
    sshowLabel
    true
    sreadOnly
    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
    url
  @/@company
  sname
  company
  ssize
  60
  sgroup
  Login
  sshowLabel
  true
  sreadOnly
  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
  company
  @/@logo
  sname
  logo
  ssize
  60
  sgroup
  Login
  sshowLabel
  true
  sreadOnly
  false
  sdefault
  /images/logo.png
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_mark
  false
  sid
  logo
  @/@rootNodeLabel
  sname
  rootNodeLabel
  sgroup
  RootNode
  sshowLabel
  true
  sreadOnly
  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
  rootNodeLabel
  @/@rootNodeLabel_en
  sname
  rootNodeLabel_en
  sgroup
  RootNode
  sshowLabel
  true
  sreadOnly
  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
  rootNodeLabel_en
  @/@swtMenus1
  sname
  swtMenus
  sdescriptors
  xworker.lang.MetaDescriptor3/@swtMenus
  sid
  swtMenus1
    @/@swtMenus1/@menuDefine
    sname
    menuDefine
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus/@menuDefine
    sid
    menuDefine
      @/@swtMenus1/@menuDefine/@WebAction
      sname
      TreeHtmlDoc
      slabel
      TreeHtmlDoc
      sdescriptors
      xworker.lang.ThingMenu/@menuDefine/@menu
      sid
      WebAction
    @/@swtMenus1/@execute
    sname
    TreeHtmlDoc
    stype
    data
    smenuType
    TreeHtmlDoc
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus/@menuSetting
    sid
    execute
      @/@swtMenus1/@execute/@runWebAction
      sname
      runWebAction
      slabel
      在浏览器中打开
      surl
      xworker.web.ControlSet/@actions/@httpExecute
      sisSplit
      false
      sattachParam
      true
      sen_label
      Run Web Action
      sdescriptors
      xworker.lang.ThingMenu/@menuSetting/@menu
      sid
      runWebAction
      @/@swtMenus1/@execute/@sperator
      sname
      sperator
      sisSplit
      true
      sattachParam
      true
      sdescriptors
      xworker.lang.ThingMenu/@menuSetting/@menu
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      sperator
      @/@swtMenus1/@execute/@创建数据库表
      sname
      createDbTables
      slabel
      初始化数据库表
      surl
      xworker.doc.treehtmldoc.TreeHtmlDoc/@actions/@menu_initDb
      sisSplit
      false
      sattachParam
      true
      sdescriptors
      xworker.lang.ThingMenu/@menuSetting/@menu
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      创建数据库表
