^1640742913104
@
sname
RemoteWidget
slabel
RemoteWidget
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
sicon
icons/world_link.png
Sdescription
#$@text#$@
<h3>远程控件</h3>

<p>&nbsp;&nbsp;&nbsp; Extjs前端通过AJAX从服务器上获取的控件，如弹出窗口和工作区的编辑器等。生成的代码大致如下：</p>

<pre class="brush:jscript;">
//名字空间
var rw = Ext.ns(&#39;&lt;nameSpace&gt;&#39;);

//通过item节点生成的Extjs控件
rw.item = new Ext.XXX{
});

//初始化方法，通过初始化函数编写
rw.init = function(value){
};</pre>

<h3>全局唯一标识</h3>

<p>&nbsp;&nbsp;&nbsp; 所有内部空间的标识都应该是全局唯一的，即一个应用里不同的远程控件中的内部组件的标识的命名都应该是唯一的，因为它们不再指定的命名空间中。</p>

<h3>动态性</h3>

<p>&nbsp;&nbsp; 动态组件的代码最终是通过http请求并且是通过Freemarker输出javascript代码的，因此可以使用freemarker模板，并使用request或requestBean使用参数等。</p>

<p>&nbsp;&nbsp; 如果是动态的请重载getNamespace方法返回名称空间，可以根据需要返回不同的名称空间。</p>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sid
  actions
    @/@actions/@httpDo
    sname
    httpDo
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.extjs.xw.remote.RemoteWidgetCreator
    smethodName
    httpDo
    sdisableGlobalContext
    false
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    httpDo
    @/@actions/@toJavaScriptCode
    sname
    toJavaScriptCode
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.extjs.xw.remote.RemoteWidgetCreator
    smethodName
    toJavaScriptCode
    sdisableGlobalContext
    false
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    toJavaScriptCode
    @/@actions/@getNamespace
    sname
    getNamespace
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.extjs.xw.remote.RemoteWidgetCreator
    smethodName
    getNamespace
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sth_mark
    false
    sid
    getNamespace
  @/@name
  sname
  name
  slabel
  名称
  ssize
  40
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  name
  @/@label
  sname
  label
  slabel
  标签
  ssize
  40
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  label
  @/@widgetPath
  sname
  widgetPath
  slabel
  组件路径
  sinputtype
  dataSelector
  ssize
  60
  scolspan
  2
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>Extjs组件路径。</p>
<p>可以指向任意Extjs的控件，也可以为空，为空时直接在本事物中添加Extjs控件。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  widgetPath
  @/@namespace
  sname
  namespace
  slabel
  名称空间
  ssize
  40
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>组件生成到Extjs中的变量名称控件，Extjs.ns(xxxx)。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  namespace
  @/@toJavaScriptAllTime
  sname
  toJavaScriptAllTime
  sinputtype
  truefalse
  sshowLabel
  true
  sreadOnly
  false
  sdefault
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>每次HTTP请求时总时重新生成js文件，否则只在事物变动时生成一次。</p>

<p><strong>比如：</strong></p>

<p>&nbsp;&nbsp;&nbsp; 有一个控件是根据Http请求的参数动态生成不同的界面的，那么在此设置为true。</p>
#$@text#$@
  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
  toJavaScriptAllTime
  @/@description
  sname
  description
  slabel
  描述
  sinputtype
  html
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_mark
  false
  sid
  description
  @/@item
  sname
  item
  slabel
  控件
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.extjs.Items
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>在这里定义控件，只使用第一个子节点。</p>

<p>当组件路径为空时使用本事物创建控件。</p>
#$@text#$@
  sid
  item
  @/@initFunction
  sname
  initFunction
  slabel
  初始化函数
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.extjs.Function
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sdescription
  <p>打开远程控件时的初始化函数。</p>
  sid
  initFunction
    @/@initFunction/@name
    sname
    name
    sreadOnly
    false
    sdefault
    init
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@initFunction/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@initFunction/@params
    sname
    params
    ssize
    60
    scolspan
    2
    sreadOnly
    false
    sdefault
    value
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    params
  @/@sswtMenus
  sname
  sswtMenus
  sdescriptors
  xworker.lang.MetaDescriptor3/@swtMenus
  sextends
  xworker.extjs.ExtJs/@sswtMenus
  sth_createIndex
  false
  sid
  sswtMenus
  @/@actions1
  sname
  actions
  slabel
  Actions
  sdescriptors
  xworker.lang.MetaDescriptor2/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  Sdescription
#$@text#$@
<p>动作集合，通过子节点可以添加各种动作，动作通常是一个可执行的程序。</p>
<p>事物的第一个动作集合的子事物才可以作为事物的行为，第二个及其他动作集合就不能作为事物的行为使用了，事物的行为默认找第一个动作集合。</p>
<p>事物的run方法一般是这个事物转化为动作之后执行的方法。</p>
#$@text#$@
  szh_label
  动作
  sth_createIndex
  false
  sid
  actions1
    @/@actions1/@name
    sname
    name
    sdescriptors
    xworker.lang.MetaDescriptor2/@attribute
    sid
    name
  @/@checkPermission
  sname
  checkPermission
  sinputtype
  truefalse
  sgroup
  Permission
  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
  checkPermission
  @/@permission
  sname
  permission
  ssize
  50
  sgroup
  Permission
  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
  permission
  @/@action
  sname
  action
  sgroup
  Permission
  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
  action
