^1639983263141
@
sname
TableActions
slabel
TableActions
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
sth_createIndex
false
sth_mark
false
  @/@GetSelection
  sname
  GetSelection
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.SelfAction
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  swt.table
  smodifier
  public
  sinheritDescription
  false
  sdescription
  <p>获取一个表格的被选中的记录，默认直接返回table.getSelection()的结果，如果returnType=one，返回null或第一条记录，如果returnType=list，返回空list或选中的记录List列表。</p>
  sth_createIndex
  true
  sth_registThing
  child|xworker.lang.actions.Actions
  sth_mark
  false
  sid
  GetSelection
    @/@GetSelection/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sth_mark
    false
    sid
    actions
      @/@GetSelection/@actions/@run
      sname
      run
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      souterClassName
      xworker.swt.actions.TableActions
      smethodName
      getSelection
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sth_createIndex
      false
      sth_mark
      false
      sid
      run
    @/@GetSelection/@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
    @/@GetSelection/@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
    @/@GetSelection/@tableName
    sname
    tableName
    sinputtype
    openWindow
    ssize
    40
    sinputattrs
    xworker.swt.xworker.attributeEditor.openWins.SelectThingOpenWindow/@shell|descriptor=xworker.swt.widgets.Table,returnType=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
    tableName
    @/@GetSelection/@returnType
    sname
    returnType
    sinputtype
    select
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    returnType
      @/@GetSelection/@returnType/@one
      sname
      one
      svalue
      one
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sth_mark
      false
      sid
      one
      @/@GetSelection/@returnType/@list
      sname
      list
      svalue
      list
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sth_mark
      false
      sid
      list
    @/@GetSelection/@varName
    sname
    varName
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>如果不为空返回值将以此变量名保存到变量上下文中。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    varName
    @/@GetSelection/@description
    sname
    description
    sinputtype
    html
    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
    description
  @/@GetSelectionData
  sname
  GetSelectionData
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.SelfAction
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  swt.table
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>获取一个表格的被选中的记录的data，如果returnType=one，返回null或第一条记录，如果returnType=list或默认，返回空list或选中的记录List列表。</p>

<p>其中data是TableItem.getData()的值，GetSelectin返回的是TableItem，而本动作返回的是TableItem中的data。</p>

<p>&nbsp;</p>
#$@text#$@
  sth_createIndex
  true
  sth_registThing
  child|xworker.lang.actions.Actions
  sth_mark
  false
  sid
  GetSelectionData
    @/@GetSelectionData/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sth_mark
    false
    sid
    actions
      @/@GetSelectionData/@actions/@run
      sname
      run
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      souterClassName
      xworker.swt.actions.TableActions
      smethodName
      getSelectionData
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sth_createIndex
      false
      sth_mark
      false
      sid
      run
    @/@GetSelectionData/@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
    @/@GetSelectionData/@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
    @/@GetSelectionData/@tableName
    sname
    tableName
    sinputtype
    openWindow
    ssize
    40
    sinputattrs
    xworker.swt.xworker.attributeEditor.openWins.SelectThingOpenWindow/@shell|descriptor=xworker.swt.widgets.Table,returnType=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
    tableName
    @/@GetSelectionData/@returnType
    sname
    returnType
    sinputtype
    select
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    returnType
      @/@GetSelectionData/@returnType/@one
      sname
      one
      svalue
      one
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sth_mark
      false
      sid
      one
      @/@GetSelectionData/@returnType/@list
      sname
      list
      svalue
      list
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sth_mark
      false
      sid
      list
    @/@GetSelectionData/@varName
    sname
    varName
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>如果不为空返回值将以此变量名保存到变量上下文中。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_mark
    false
    sid
    varName
    @/@GetSelectionData/@description
    sname
    description
    sinputtype
    html
    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
    description
  @/@IfTableItemSelected
  sname
  IfTableItemSelected
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.SelfAction
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  swt.table
  smodifier
  public
  sinheritDescription
  false
  sdescription
  <p>查看Table是否选择了记录，如果选择了那么执行Then节点下的动作，否则提示消息。</p>
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  true
  sth_registThing
  child|xworker.lang.actions.Actions
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  IfTableItemSelected
    @/@IfTableItemSelected/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    actions
      @/@IfTableItemSelected/@actions/@run
      sname
      run
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.lang.util.UtilAction;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Table;

def table = self.doAction("getTable", actionContext);
if(!(table instanceof Table)){
    def box = new MessageBox(table.getShell(), SWT.ICON_WARNING | SWT.OK);
    box.setText(self.doAction("getTitle", actionContext));
    box.setMessage("不是表格！请查看表格参数的设置。");
    box.open();
    return;
}

if(table.getSelectionCount() > 0){
    return UtilAction.runChildChildActions(self.getChilds("Then"), actionContext);
}else{
    def box = new MessageBox(table.getShell(), SWT.ICON_WARNING | SWT.OK);
    box.setText(self.doAction("getTitle", actionContext));
    box.setMessage(self.doAction("getMessage", actionContext));
    box.open();
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      run
      @/@IfTableItemSelected/@actions/@getTable
      sname
      getTable
      sattributeName
      table
      snotNull
      false
      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/@GetData
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      getTable
      @/@IfTableItemSelected/@actions/@getTitle
      sname
      getTitle
      sattributeName
      title
      snotNull
      false
      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
      @/@IfTableItemSelected/@actions/@getMessage
      sname
      getMessage
      sattributeName
      message
      snotNull
      false
      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
      getMessage
    @/@IfTableItemSelected/@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_registDisabled
    false
    sth_mark
    false
    sid
    name
    @/@IfTableItemSelected/@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_registDisabled
    false
    sth_mark
    false
    sid
    label
    @/@IfTableItemSelected/@table
    sname
    table
    ssize
    50
    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_registDisabled
    false
    sth_mark
    false
    sid
    table
    @/@IfTableItemSelected/@title
    sname
    title
    ssize
    50
    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_registDisabled
    false
    sth_mark
    false
    sid
    title
    @/@IfTableItemSelected/@message
    sname
    message
    sinputtype
    textarea
    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_registDisabled
    false
    sth_mark
    false
    sid
    message
    @/@IfTableItemSelected/@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_registDisabled
    false
    sth_mark
    false
    sid
    description
    @/@IfTableItemSelected/@Then
    sname
    Then
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    sextends
    xworker.lang.actions.Actions
    smany
    true
    seditCols
    2
    sinitialization
    false
    smodifier
    public
    sinheritDescription
    false
    sdescription
    <p>如果选中的记录要执行的动作。</p>
    snotXmlAttribute
    false
    sjson_isArray
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    Then
