All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.swt.xwidgets.DemoSWT.xer.txt Maven / Gradle / Ivy

^1447813531498
@
sname
DemoSWT
slabel
DemoSWT
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.swt.layout.LayoutDatas
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@

SWT演示用控件,是一个TabFloder,第一个TabItem是事物所生成的SWT控件,第二个TabItem是事物的编辑界面。

保存的变量

    创建后保存和返回的是actions。

主要方法

  • setComposite(Object composite)
    设置要演示的Composite,可以是事物或事物的路径。
     
  • getControl
    返回TabFolder变量。
#$@text#$@ snotXmlAttribute false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions sname actions sdescriptors xworker.lang.MetaDescriptor3/@actions sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@actions/@create sname create sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.xwidgets.DemoTabFolder smethodName create sdisableGlobalContext false sattributeTemplate false sinterpretationType Action svarScope Global screateLocalVarScope false ssaveReturn false sdebugLog false sdescriptors xworker.lang.actions.Actions/@JavaAction sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@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 @/@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 @/@compositePath sname composite sinputtype dataSelector sshowLabel true ssize 60 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 @/@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 @/@composite sname Composite sdescriptors xworker.lang.MetaDescriptor3 sextends xworker.swt.widgets.Composite smany true seditCols 2 sinitialization false smodifier public sinheritDescription false snotXmlAttribute false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder sname demoTabFolder sdescriptors xworker.swt.widgets.TabFolder sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@tabItem sname demoTabItem stext Demo sdescriptors xworker.swt.widgets.TabFolder/@TabItem sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@tabItem/@demoComposite sname demoComposite 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 sxw_cl_global false sdescriptors xworker.swt.Widgets/@Composite sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@tabItem/@demoComposite/@demoCompositeFillLayout sname demoCompositeFillLayout stype SWT.HORIZONTAL sxw_cl_global false sdescriptors xworker.swt.Layouts/@FillLayout sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@thingTabItem sname thingTabItem stext Thing sdescriptors xworker.swt.widgets.TabFolder/@TabItem sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@thingTabItem/@thingEditorComposite sname thingEditorComposite 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 sxw_cl_global false sdescriptors xworker.swt.Widgets/@Composite sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@thingEditorCompositeGridLayout sname thingEditorCompositeGridLayout 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 @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@thingEditor sname thingEditor stitle true sxw_cl_global false sdescriptors xworker.swt.Widgets/@ThingEditor sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@thingEditor/@thingEditorGridData sname thingEditorGridData sstyle FILL_BOTH shorizontalIndent 0 swidth -1 sheight -1 shorizontalAlignment BEGINNING sverticalAlignment CENTER shorizontalSpan 1 sverticalSpan 1 sgrabExcessHorizontalSpace false sgrabExcessVerticalSpace false sxw_cl_global false sdescriptors xworker.swt.Commons/@GridData sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@7860 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 @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@7860/@7861 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 @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@7860/@7862 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 @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@7860/@7863 sname updateButton stext 刷新 stype SWT.PUSH sflat false sborder false sselected false scapture false senabled true sredraw true svisible true sxw_cl_global false sdescriptors xworker.swt.Widgets/@Button sth_createIndex false @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@7860/@7863/@7864 sname RowData sexclude false swidth 80 sheight -1 sdescriptors xworker.swt.layout.LayoutDatas/@RowData sth_createIndex false @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@7860/@7863/@7865 sname Listeners sdescriptors xworker.swt.widgets.Widget/@Listeners sth_createIndex false @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@7860/@7863/@7865/@7866 sname updateButtonSelection stype Selection sdescriptors xworker.swt.events.Listeners/@listeners/@Listener sth_createIndex false @/@demoTabFolder/@thingTabItem/@thingEditorComposite/@7860/@7863/@7865/@7866/@GroovyAction sname GroovyAction sisSynchronized false sthrowException true suseOtherAction false svarScope Local sdisableGlobalContext false Scode #$@text#$@ import org.xmeta.ActionContext; //先保存事物 thingEditor.editorActions.doAction("save"); //先清除原有的控件 for(child in demoComposite.getChildren()){ child.dispose(); } //创建Composite def ac = new ActionContext(); ac.put("parent", demoComposite); compositeThing.doAction("create", ac); demoTabItem.setText(compositeThing.getMetadata().getLabel()); demoComposite.layout(); demoComposite.getParent().layout(); demoTabFolder.setSelection(0); #$@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 @/@demoTabFolder/@actions sname actions sdescriptors xworker.swt.Widgets/@actions sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@actions/@setComposite sname setComposite sisSynchronized false sthrowException true suseOtherAction false svarScope Local sdisableGlobalContext false Scode #$@text#$@ import org.xmeta.ActionContext; def thing = composite; if(composite instanceof String){ thing = world.getThing(composite); } if(thing == null){ log.warn("DemoTabFolder: composite thing is null"); return; } //先清除原有的控件 for(child in demoComposite.getChildren()){ child.dispose(); } //创建Composite def ac = new ActionContext(); ac.put("parent", demoComposite); thing.doAction("create", ac); demoTabItem.setText(thing.getMetadata().getLabel()); //在编辑器中编辑事物 thingEditor.editorActions.doAction("setThing", ["thing": thing]); actionContext.getScope(0).put("compositeThing", thing); demoComposite.layout(); demoComposite.getParent().layout(); #$@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 @/@demoTabFolder/@actions/@setComposite/@ins sisValidate false sname ins sdescriptors xworker.lang.actions.Inout/@ins sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@actions/@setComposite/@ins/@path sname composite stypeCheck false soptional true scheck false scheckLevel exception sdescriptors xworker.lang.actions.Inout/@ins/@param sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@demoTabFolder/@actions/@getControl sname getControl sexpression demoTabFolder 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.Actions/@Ongl sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false




© 2015 - 2025 Weber Informatics LLC | Privacy Policy