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

xworker.swt.object.ObjectTree.xer.txt Maven / Gradle / Ivy

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

把一个对象显示到一颗树上。

变量上下文保存的是ActionContainer对象,通过它的setObject方法可以设置对象。

可以重写的方法:

  • getObject
    返回要在树上显示的对象。

 可以调用的方法:

  • setObject(Object object, Tree tree)
    <tree>.getData("thing")是调用setObject的事物,object是要设置的对象,tree是<tree>。

 

 

#$@text#$@ snotXmlAttribute false sjson_isArray 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.object.ObjectTree 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 @/@actions/@setObject sname setObject sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.object.ObjectTree smethodName setObject 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 @/@actions/@getObject sname getObject sattributeName object 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 @/@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 @/@object sname object sshowLabel true ssize 50 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 @/@Node sname Node sdescriptors xworker.lang.MetaDescriptor3/@thing smany true seditCols 2 sinitialization false smodifier public sinheritDescription false Sdescription #$@text#$@

Node用于从对象上分析出要显示在树上的信息。

TreeItem的data

    TreeItem的data存放的是对应树节点的对象。

ognl表达式

    使用ognl表达式获取各种信息,其中根对象是actionContext,根对象是_rootObject变量,当前父节点和从读取属性时的变量是_object。

    可以通过重写getObject、getLabel和getIcon等方法覆盖通过ognl表达式默认取值的方法。

字段

  • objectPath
    获取要显示对象的ognl表达式。
     
  • labelPath
    树节点的文字。
     
  • iconPath
    树节点的图标路径。

可以重写的方法:

  • getObject
  • getLabel
  • getIcon
#$@text#$@ snotXmlAttribute false sjson_isArray false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@Node/@actions sname actions sdescriptors xworker.lang.MetaDescriptor3/@actions sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@Node/@actions/@getObject sname getObject sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.object.ObjectTree smethodName getNodeObject 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 @/@Node/@actions/@getLabel sname getLabel sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.object.ObjectTree smethodName getLabel 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 @/@Node/@actions/@getIcon sname getIcon sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.object.ObjectTree smethodName getIcon 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 @/@Node/@actions/@create sname create sdescriptors xworker.lang.actions.Actions/@NOOP sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@Node/@actions/@createTreeItem sname createTreeItem sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.object.ObjectTree smethodName createTreeItem 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 @/@Node/@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 @/@Node/@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 @/@Node/@refNode sname refNode 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 @/@Node/@path sname objectPath sinputtype text sshowLabel true ssize 50 sreadOnly false sdefault _object sinheritDescription false sdescription

获取节点对象的ognl表达式,作为子节点一般是从父节点上的对象上获取,如果为空那么使用当前对象。

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 @/@Node/@labelPath sname labelPath sshowLabel true ssize 50 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 @/@Node/@iconPath sname iconPath 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 @/@Node/@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 @/@Node/@Node sname Node sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.swt.object.ObjectTree/@Node smany true seditCols 2 sinitialization false smodifier public sinheritDescription false snotXmlAttribute false sjson_isArray false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@Node/@actions1 sname actions slabel Actions sdescriptors xworker.lang.MetaDescriptor2/@thing sextends xworker.lang.actions.Actions smany true seditCols 2 Sdescription #$@text#$@

动作集合

    通过动作可以定义事物的行为,事物的行为即动作,可以用多种语言和方式编写。

self变量

    当一个动作作为一个事物的行为执行时,会把该事物以self变量传给动作。

第一个动作集合生效

    只有事物的第一个actions子节点才被认为是行为的定义集合,第二个及以后不算。

#$@text#$@ sid actions szh_label 动作 sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false Sen_description #$@text#$@

Actions

    Use actions can define behaviors of the thing. Behavior is action, can be defined by many program languages or other things.

Variable self

    When a action is executed as a behavior, in the actionContext will have a virable named 'self', self like this in java, self is it's onwer thing.

First actions is validate

    Only first actions node is behaviros collections.

#$@text#$@ sth_mark false @/@Node/@actions1/@name sname name sid name sdescriptors xworker.lang.MetaDescriptor2/@attribute @/@tree sname tree sselectStyle SINGLE sV_SCROLL true sH_SCROLL true sCHECK false sFULL_SELECTION false sHIDE_SELECTION false sBORDER false slineVisible false smultipleColumns false sheaderVisible false ssortIndicator false smoveableColumns false sheadImages false ssubImages false scheckSelection false scapture false senabled true sredraw true svisible true sxw_cl_global false sdescriptors xworker.swt.widgets.Tree sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@tree/@resources sname resources sdescriptors xworker.swt.util.Resource sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@tree/@resources/@folderImage sname folderImage stype Image simageFile icons/folder.png sdescriptors xworker.swt.util.Resource/@Image sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@tree/@resources/@fileImage sname fileImage stype Image simageFile icons/page_white.png sdescriptors xworker.swt.util.Resource/@Image sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@tree/@actions1 sname actions sdescriptors xworker.swt.Widgets/@actions sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false sth_mark false @/@tree/@actions1/@setObject sname setObject sisSynchronized false sthrowException true suseOtherAction false svarScope Local sdisableGlobalContext false scode thing.doAction("setObject", actionContext, ["object": object]); 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 @/@actions1 sname actions slabel Actions sdescriptors xworker.lang.MetaDescriptor2/@thing sextends xworker.lang.actions.Actions smany true seditCols 2 Sdescription #$@text#$@

动作集合

    通过动作可以定义事物的行为,事物的行为即动作,可以用多种语言和方式编写。

self变量

    当一个动作作为一个事物的行为执行时,会把该事物以self变量传给动作。

第一个动作集合生效

    只有事物的第一个actions子节点才被认为是行为的定义集合,第二个及以后不算。

#$@text#$@ sid actions szh_label 动作 sinheritDescription false sth_createIndex false sth_registMyChilds false sth_registDisabled false Sen_description #$@text#$@

Actions

    Use actions can define behaviors of the thing. Behavior is action, can be defined by many program languages or other things.

Variable self

    When a action is executed as a behavior, in the actionContext will have a virable named 'self', self like this in java, self is it's onwer thing.

First actions is validate

    Only first actions node is behaviros collections.

#$@text#$@ sth_mark false @/@actions1/@name sname name sid name sdescriptors xworker.lang.MetaDescriptor2/@attribute @/@Listeners sname Listeners sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.swt.events.Listeners/@listeners smany false seditCols 2 sinitialization false sgroup events smodifier public sinheritDescription true




© 2015 - 2025 Weber Informatics LLC | Privacy Policy