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

xworker.swt.actions.MessageBoxActions.xer.txt Maven / Gradle / Ivy

^1439886339209
@
sname
MessageBoxActions
slabel
MessageBoxActions
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
sth_createIndex
true
sth_registThing
child|xworker.lang.actions.Actions
sth_registMyChilds
true
sth_mark
false
@/@MessageBox
sname
MessageBox
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sinitialization
false
sgroup
swt.dialogs
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@

打开一个SWT的Message,可以通过相应的事件处理Message的相应按钮。

返回值:

    返回值为触发的事件的返回值,事件默认返回OK, CANCEL,YES , NO,RETRY ,ABORT, IGNORE 等字符串,如果重写了事件,那么返回值由重写的方法决定。

事件

    点击按钮时会调用调用相应的动作,分别是:

  • ok
  • cancel
  • yes
  • no
  • retry
  • abort
  • ignore
#$@text#$@ snotXmlAttribute false sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@actions sname actions sdescriptors xworker.lang.MetaDescriptor3/@actions sth_createIndex false @/@MessageBox/@actions/@run sname run sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.actions.MessageBoxActionsMessageBoxCreator smethodName run sdisableGlobalContext false sdescriptors xworker.lang.actions.JavaAction sth_createIndex false @/@MessageBox/@actions/@ok sname ok stype string svalue OK 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/@ValueFactory sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@actions/@cancel sname cancel stype string svalue CANCEL 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/@ValueFactory sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@actions/@yes sname yes stype string svalue YES 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/@ValueFactory sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@actions/@no sname no stype string svalue NO 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/@ValueFactory sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@actions/@retry sname retry stype string svalue RETRY 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/@ValueFactory sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@actions/@abort sname abort stype string svalue ABORT 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/@ValueFactory sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@actions/@ignore sname ignore stype string svalue IGNORE 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/@ValueFactory sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@actions/@getShell sname getShell sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true suseInnerJava false souterClassName xworker.swt.actions.FileDialogActions smethodName getShell 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_mark false @/@MessageBox/@name sname name sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @/@MessageBox/@label sname label sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @/@MessageBox/@shell sname shell sshowLabel true ssize 50 sreadOnly false sinheritDescription false sdescription

返回用于创建FileDialog的Shell,支持ognl:、var:等前缀。

svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true snotXmlAttribute false sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false sth_registMyChilds false sth_mark false @/@MessageBox/@style sname icon sinputtype select sreadOnly false sdefault ICON_ERROR sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @/@MessageBox/@style/@ICON_ERROR sname ICON_ERROR slabel ICON_ERROR svalue ICON_ERROR sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@style/@ICON_INFORMATION sname ICON_INFORMATION slabel ICON_INFORMATION svalue ICON_INFORMATION sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@style/@ICON_QUESTION sname ICON_QUESTION slabel ICON_QUESTION svalue ICON_QUESTION sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@style/@ICON_WARNING sname ICON_WARNING slabel ICON_WARNING svalue ICON_WARNING sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@style/@ICON_WORKING sname ICON_WORKING slabel ICON_WORKING svalue ICON_WORKING sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@buttons sname buttons sinputtype select sreadOnly false sdefault OK | CANCEL sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @/@MessageBox/@buttons/@OK sname OK slabel OK svalue OK sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@buttons/@OKCANCEL sname OKCANCEL slabel OK | CANCEL svalue OK | CANCEL sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@buttons/@YESNO sname YESNO slabel YES | NO svalue YES | NO sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@buttons/@YESNOCANCEL sname YESNOCANCEL slabel YES | NO | CANCEL svalue YES | NO | CANCEL sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@buttons/@RETRYCANCEL sname RETRYCANCEL slabel RETRY | CANCEL svalue RETRY | CANCEL sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@buttons/@ABORTRETRYIGNORE sname ABORTRETRYIGNORE slabel ABORT | RETRY | IGNORE svalue ABORT | RETRY | IGNORE sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value sth_createIndex false @/@MessageBox/@title sname title ssize 60 scolspan 2 sreadOnly false sinheritDescription false svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @/@MessageBox/@message sname message sinputtype textarea scolspan 2 sreadOnly false sinheritDescription false sdescription

可以使用Freemarker模板。

svalidateAllowBlank true LvalidateOnBlur true LallowDecimals true LallowNegative true sdescriptors xworker.lang.MetaDescriptor3/@attribute sth_createIndex false @/@MessageBox/@actions1 sname actions slabel Actions sdescriptors xworker.lang.MetaDescriptor2/@thing sextends xworker.lang.actions.Actions smany true seditCols 2 Sdescription #$@text#$@

动作集合,通过子节点可以添加各种动作,动作通常是一个可执行的程序。

事物的第一个动作集合的子事物才可以作为事物的行为,第二个及其他动作集合就不能作为事物的行为使用了,事物的行为默认找第一个动作集合。

事物的run方法一般是这个事物转化为动作之后执行的方法。

#$@text#$@ sid actions szh_label 动作 sth_createIndex false @/@MessageBox/@actions1/@name sname name sid name sdescriptors xworker.lang.MetaDescriptor2/@attribute @/@Prompt sname Prompt sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.lang.actions.SelfAction smany true seditCols 2 sinitialization false sgroup swt.dialogs smodifier public sinheritDescription false Sdescription #$@text#$@

输入弹出框,可以用于输入一个文本字符串,返回输入的字符串。

事件

  • ok
    点击确定按钮后会执行本事物的ok动作,输入参数text。
  • cacnel
    点击取消那妞会执行本事物的cancel动作。
#$@text#$@ snotXmlAttribute false sth_createIndex false sth_registMyChilds false sth_mark false @/@Prompt/@actions sname actions sdescriptors xworker.lang.MetaDescriptor3/@actions sinheritDescription false sth_createIndex false sth_registMyChilds false sth_mark false @/@Prompt/@actions/@run sname run sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.actions.MessageBoxActionsMessageBoxCreator smethodName prompt sdisableGlobalContext false sattributeTemplate false sinterpretationType Action svarScope Global screateLocalVarScope false ssaveReturn false sdescriptors xworker.lang.actions.JavaAction sth_createIndex false @/@Prompt/@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_mark false @/@Prompt/@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_mark false @/@Prompt/@title sname title 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 @/@Prompt/@message sname message 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_mark false @/@Prompt/@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_mark false @/@Prompt/@actions1 sname actions slabel Actions sdescriptors xworker.lang.MetaDescriptor2/@thing sextends xworker.lang.actions.Actions smany true seditCols 2 Sdescription #$@text#$@

动作集合,通过子节点可以添加各种动作,动作通常是一个可执行的程序。

事物的第一个动作集合的子事物才可以作为事物的行为,第二个及其他动作集合就不能作为事物的行为使用了,事物的行为默认找第一个动作集合。

事物的run方法一般是这个事物转化为动作之后执行的方法。

#$@text#$@ sid actions szh_label 动作 sth_createIndex false @/@Prompt/@actions1/@name sname name sid name sdescriptors xworker.lang.MetaDescriptor2/@attribute




© 2015 - 2025 Weber Informatics LLC | Privacy Policy