^1717579854922
@
sname
shell
stext
演示选择器
sNO_TRIM
false
sCLOSE
true
sTITLE
true
sMIN
true
sMAX
true
sBORDER
false
sRESIZE
false
sON_TOP
false
sTOOL
false
sNO_FOCUS
false
swidth
640
sheight
480
scenterScreen
true
spack
false
smaximized
false
sfullScreen
false
sH_SCROLL
false
sV_SCROLL
false
sNO_BACKGROUND
false
sNO_MERGE_PAINTS
false
sNO_REDRAW_RESIZE
false
sNO_RADIO_GROUP
false
sEMBEDDED
false
sDOUBLE_BUFFERED
false
slabel
DemoSelector
scapture
false
senabled
true
sredraw
true
svisible
true
sdescriptors
xworker.swt.widgets.Shell
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
  @/@shellFillLayout
  sname
  shellFillLayout
  stype
  SWT.HORIZONTAL
  sdescriptors
  xworker.swt.Layouts/@FillLayout
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  shellFillLayout
  @/@mainComposite
  sname
  mainComposite
  sBORDER
  false
  sH_SCROLL
  false
  sV_SCROLL
  false
  sNO_BACKGROUND
  false
  sNO_FOCUS
  false
  sNO_MERGE_PAINTS
  false
  sNO_REDRAW_RESIZE
  false
  sNO_RADIO_GROUP
  false
  sEMBEDDED
  false
  sDOUBLE_BUFFERED
  false
  scapture
  false
  senabled
  true
  sredraw
  true
  svisible
  true
  sdescriptors
  xworker.swt.Widgets/@Composite
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  mainComposite
    @/@mainComposite/@mainCompositeGridLayout
    sname
    mainCompositeGridLayout
    smakeColumnsEqualWidth
    false
    smarginWidth
    5
    smarginHeight
    5
    smarginLeft
    0
    smarginTop
    0
    smarginRight
    0
    smarginBottom
    0
    shorizontalSpacing
    5
    sverticalSpacing
    5
    sdescriptors
    xworker.swt.Layouts/@GridLayout
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    mainCompositeGridLayout
    @/@mainComposite/@sashForm
    sname
    sashForm
    sstyle
    HORIZONTAL
    sSMOOTH
    false
    sweights
    30,70
    sBORDER
    false
    sH_SCROLL
    false
    sV_SCROLL
    false
    sNO_BACKGROUND
    false
    sNO_FOCUS
    false
    sNO_MERGE_PAINTS
    false
    sNO_REDRAW_RESIZE
    false
    sNO_RADIO_GROUP
    false
    sEMBEDDED
    false
    sDOUBLE_BUFFERED
    false
    scapture
    false
    senabled
    true
    sredraw
    true
    svisible
    true
    sdescriptors
    xworker.swt.Widgets/@SashForm
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    sashForm
      @/@mainComposite/@sashForm/@table
      sname
      table
      sselectStyle
      SINGLE
      sV_SCROLL
      true
      sH_SCROLL
      true
      sCHECK
      false
      sFULL_SELECTION
      true
      sHIDE_SELECTION
      true
      sBORDER
      false
      slineVisible
      true
      smultipleColumns
      true
      sheaderVisible
      true
      ssortIndicator
      true
      smoveableColumns
      true
      sheadImages
      false
      ssubImages
      false
      sVIRTUAL
      false
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      sdescriptors
      xworker.swt.Widgets/@Table
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      table
        @/@mainComposite/@sashForm/@table/@dataStore
        sname
        dataStore
        sattachToParent
        true
        sloadBackground
        true
        sautoLoad
        false
        sautoSave
        false
        spaging
        extend
        spageSize
        50
        sstoreSortField
        _extend
        sstoreSortDir
        ASC
        seditable
        extend
        seditmethod
        extend
        sdescriptors
        xworker.swt.widgets.Table/@DataStore
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        dataStore
          @/@mainComposite/@sashForm/@table/@dataStore/@dataObjects
          sname
          dataObjects
          sdescriptors
          xworker.swt.app.view.swt.data.DataStore/@DataObjects
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_mark
          false
          sid
          dataObjects
            @/@mainComposite/@sashForm/@table/@dataStore/@dataObjects/@AbstractDataObject
            sname
            AbstractDataObject
            seditCols
            2
            spaging
            false
            sreadUrl
            do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@read
            screateUrl
            do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@create
            supdateUrl
            do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@update
            sdestroyUrl
            do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@destroy
            LstoreAutoDestroy
            false
            sstoreAutoLoad
            false
            LstoreAutoSave
            true
            LstoreBatch
            true
            LstorePruneModifiedRecords
            false
            LstoreRemoteSort
            false
            LstoreRestful
            false
            sstoreRoot
            'rows'
            sstoreSuccessProperty
            'success'
            sstoreTotalProperty
            'totalCount'
            sstoreMessageProperty
            'msg'
            sgridEditable
            false
            sgridEditType
            cell
            sformReadUrl
            do?sc=xworker.web.app.view.extjs.server.DataObjectForm/@read
            sformCreateUrl
            do?sc=xworker.web.app.view.extjs.server.DataObjectForm/@create
            sformUpdateUrl
            do?sc=xworker.web.app.view.extjs.server.DataObjectForm/@update
            sformDestroyUrl
            do?sc=xworker.web.app.view.extjs.server.DataObjectForm/@delete
            spaging_afterPageText
            页 共
            spaging_beforePageText
            第
            Lpaging_displayInfo
            false
            spaging_displayMsg
            第{0}-第{1}条，共{2}条
            spaging_emptyMsg
            没有数据
            spaging_firstText
            首页
            spaging_lastText
            最后一页
            spaging_nextText
            下一页
            Lpaging_prependButtons
            false
            spaging_prevText
            上一页
            spaging_refreshText
            刷新
            sgridColumnLocking
            false
            sgridLockText
            '锁定'
            sgridUnlockText
            '解锁'
            scolumnGroup
            false
            sgridCheckable
            false
            sgridRowNumber
            false
            sgridGrouping
            false
            sgridGroupTextTpl
            '{text} ({[values.rs.length]} 条)'
            sgridRowExpander
            false
            sautoGenerateId
            false
            sidGenerateType
            action
            sidAction
            generateId
            sstoreSortDir
            ASC
            sautoInit
            false
            sautoInitAction
            beforeCreate
            scacheRelation
            false
            scacheRelationMaxSize
            1000
            scacheRelationReadnone
            false
            safterCreated
            false
            sonLoaded
            false
            sbeforeUpdate
            false
            safterUpdated
            false
            sbeforeDelete
            false
            safterDeleted
            false
            safterQueryed
            false
            sdescriptors
            xworker.dataObject.DataObjects/@AbstractDataObject
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_mark
            false
            sid
            AbstractDataObject
              @/@mainComposite/@sashForm/@table/@dataStore/@dataObjects/@AbstractDataObject/@label
              sname
              label
              slabel
              演示名称
              stype
              string
              soptional
              true
              skey
              false
              sdataField
              true
              sviewField
              true
              sreadField
              true
              screateEditor
              true
              seditEditor
              true
              sviewEditor
              true
              sgridEditor
              true
              squeryEditor
              true
              sreadOnly
              false
              sdisabled
              false
              sshowLabel
              true
              slabelAlign
              right
              slabelVAlign
              baseline
              svalidateAllowBlank
              true
              LvalidateOnBlur
              true
              LallowDecimals
              true
              LallowNegative
              true
              sshowInTable
              true
              sgridWidth
              400
              seditable
              true
              sdisplayRelationLabel
              false
              sgridFixed
              false
              sgridHidden
              false
              sgridHideable
              true
              sgridSortable
              false
              scolumnLocked
              false
              sgridGroupable
              true
              sgridMenuDisabled
              false
              sgridResizable
              true
              sdescriptors
              xworker.dataObject.AbstractDataObject/@attribute
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_registDisabled
              false
              sth_mark
              false
              sid
              label
        @/@mainComposite/@sashForm/@table/@Listeners
        sname
        Listeners
        sdescriptors
        xworker.swt.widgets.Widget/@Listeners
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        Listeners
          @/@mainComposite/@sashForm/@table/@Listeners/@tableSelection
          sname
          tableSelection
          stype
          Selection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_mark
          false
          sid
          tableSelection
            @/@mainComposite/@sashForm/@table/@Listeners/@tableSelection/@GroovyAction
            sname
            GroovyAction
            sisSynchronized
            false
            sthrowException
            true
            suseOtherAction
            false
            svarScope
            Local
            sdisableGlobalContext
            false
            Scode
#$@text#$@
import xworker.lang.util.XWorkerUtils;

selectButton.setEnabled(true);

//显示文档
def thing = table.getSelection()[0].getData();
if(thing.getStringBlankAsNull("referencePath") != null){
    browser.setUrl(XWorkerUtils.getThingDescUrl(thing.getString("referencePath")));
}else{
    browser.setUrl(XWorkerUtils.getThingDescUrl(thing));
}
#$@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
            GroovyAction
          @/@mainComposite/@sashForm/@table/@Listeners/@tableDefaultSelection
          sname
          tableDefaultSelection
          stype
          DefaultSelection
          sref
          selectButtonSelection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_mark
          false
          sid
          tableDefaultSelection
      @/@mainComposite/@sashForm/@browser
      sname
      browser
      sWEBKIT
      false
      sjavascriptEnabled
      true
      sdescriptors
      xworker.swt.Widgets/@Browser
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      browser
        @/@mainComposite/@sashForm/@browser/@UtilBrowser
        sname
        UtilBrowser
        sdescriptors
        xworker.swt.browser.Browser/@UtilBrowser
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        UtilBrowser
      @/@mainComposite/@sashForm/@sashFormGridData
      sname
      sashFormGridData
      sstyle
      FILL_BOTH
      shorizontalIndent
      0
      swidth
      -1
      sheight
      -1
      shorizontalAlignment
      BEGINNING
      sverticalAlignment
      CENTER
      shorizontalSpan
      1
      sverticalSpan
      1
      sgrabExcessHorizontalSpace
      false
      sgrabExcessVerticalSpace
      false
      sdescriptors
      xworker.swt.layout.LayoutDatas/@GridData
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      sashFormGridData
    @/@mainComposite/@11849
    sname
    buttonComposite
    sBORDER
    false
    sH_SCROLL
    false
    sV_SCROLL
    false
    sNO_BACKGROUND
    false
    sNO_FOCUS
    false
    sNO_MERGE_PAINTS
    false
    sNO_REDRAW_RESIZE
    false
    sNO_RADIO_GROUP
    false
    sEMBEDDED
    false
    sDOUBLE_BUFFERED
    false
    scapture
    false
    senabled
    true
    sredraw
    true
    svisible
    true
    sdescriptors
    xworker.swt.Widgets/@Composite
    sid
    11849
      @/@mainComposite/@11849/@11850
      sname
      buttonCompositeGridData
      sstyle
      FILL_HORIZONTAL
      shorizontalIndent
      0
      swidth
      -1
      sheight
      -1
      shorizontalAlignment
      END
      sverticalAlignment
      CENTER
      shorizontalSpan
      1
      sverticalSpan
      1
      sgrabExcessHorizontalSpace
      false
      sgrabExcessVerticalSpace
      false
      sdescriptors
      xworker.swt.layout.LayoutDatas/@GridData
      sid
      11850
      @/@mainComposite/@11849/@11851
      sname
      buttonCompositeRowLayout
      sfill
      false
      sjustify
      false
      smarginWidth
      0
      smarginHeight
      0
      smarginLeft
      3
      smarginTop
      3
      smarginRight
      3
      smarginBottom
      3
      spack
      true
      sspacing
      3
      stype
      SWT.HORIZONTAL
      swrap
      true
      sdescriptors
      xworker.swt.Layouts/@RowLayout
      sid
      11851
      @/@mainComposite/@11849/@11852
      sname
      selectButton
      stext
      选择
      stype
      SWT.PUSH
      sflat
      false
      sborder
      false
      sselected
      false
      scapture
      false
      senabled
      false
      sredraw
      true
      svisible
      true
      sdescriptors
      xworker.swt.Widgets/@Button
      sth_createIndex
      false
      sid
      11852
        @/@mainComposite/@11849/@11852/@11853
        sname
        RowData
        sexclude
        false
        swidth
        80
        sheight
        -1
        sdescriptors
        xworker.swt.layout.LayoutDatas/@RowData
        sth_createIndex
        false
        sid
        11853
        @/@mainComposite/@11849/@11852/@11854
        sname
        Listeners
        sdescriptors
        xworker.swt.widgets.Widget/@Listeners
        sth_createIndex
        false
        sid
        11854
          @/@mainComposite/@11849/@11852/@11854/@11855
          sname
          selectButtonSelection
          stype
          Selection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sth_createIndex
          false
          sid
          11855
            @/@mainComposite/@11849/@11852/@11854/@11855/@GroovyAction
            sname
            GroovyAction
            sisSynchronized
            false
            sthrowException
            true
            suseOtherAction
            false
            svarScope
            Local
            sdisableGlobalContext
            false
            Scode
#$@text#$@
import xworker.swt.guide.AutoDemo;

def thing = table.getSelection()[0].getData();
//先显示空白
def demo = demo;
demo.executeRunnable({
    demo.layout("blankComposite");
});

//创建子演示
def childDemo = new AutoDemo(demo, mainComposite.getShell(), thing);
childDemo.show();
#$@text#$@
            sinterpretationType
            Action
            screateLocalVarScope
            false
            ssaveReturn
            false
            sswitchResult
            false
            sdebugLog
            false
            sdescriptors
            xworker.lang.actions.Actions/@GroovyAction
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_mark
            false
            sid
            GroovyAction
    @/@mainComposite/@init
    sname
    init
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.TableItem;

for(child in thing.getChilds()){
    def item = new TableItem(table, SWT.NONE);
    item.setText([child.getMetadata().getLabel()] as String[]);
    item.setData(child);
}
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdebugLog
    false
    sdescriptors
    xworker.swt.widgets.Widget/@Code
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    init
