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

xworker.swt.model.Model.xer.txt Maven / Gradle / Ivy

^1446625856191
@
sname
Model
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@

SWT数据模型,用于把Map数据填充到SWT控件上,也用于从SWT控件上读取数据。

#$@text#$@ snotXmlAttribute false @/@actions sname actions sid actions slabel actions sdescriptors xworker.lang.MetaDescriptor3/@actions @/@actions/@create sname create sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName create sdescription

Model的创建动作。

sid create sdescriptors xworker.lang.actions.JavaAction @/@actions/@setValue sname setValue sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName setValue sdisableGlobalContext false Sdescription #$@text#$@

通过Model设置值的动作。

设置值的过程:

  • 通过dataSource和propertyName和defaultValue得到要设置的值。
    如果dataSource为空那么数据默认从父Model传递,如果propertyName不为空那么取dataSource的属性,否则数据为dataSource,如果通过以上取数据还是为null那么使用defaultValue。
  • 实际调用doSetValue动作设置值。
#$@text#$@ sid setValue sdescriptors xworker.lang.actions.JavaAction @/@actions/@getValue sname getValue sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName getValue sdisableGlobalContext false sid getValue sdescriptors xworker.lang.actions.JavaAction @/@actions/@validate sname validate sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName validate sdisableGlobalContext false sdescription

校验表单中的数据。

sid validate sdescriptors xworker.lang.actions.JavaAction @/@actions/@validate/@ins sisValidate false sname ins sid ins slabel ins sdescriptors xworker.lang.actions.Inout/@ins @/@actions/@validate/@ins/@validateType sname validateType stypeCheck false soptional true scheck false scheckLevel exception sid validateType sdescriptors xworker.lang.actions.Inout/@ins/@param @/@actions/@validate/@ins/@validateMessages sname validateMessages stypeCheck false soptional true scheck false scheckLevel exception sid validateMessages sdescriptors xworker.lang.actions.Inout/@ins/@param @/@actions/@doValidate sname doValidate sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName doValidate sdisableGlobalContext false sid doValidate sdescriptors xworker.lang.actions.JavaAction @/@actions/@doValidate/@ins sisValidate false sname ins sid ins slabel ins sdescriptors xworker.lang.actions.Inout/@ins @/@actions/@doValidate/@ins/@message sname message stypeCheck false soptional true scheck false scheckLevel exception sid message sdescriptors xworker.lang.actions.Inout/@ins/@param @/@actions/@init sname init sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName init sid init sdescriptors xworker.lang.actions.JavaAction @/@actions/@initSelf sname initSelf sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName initSelf sdisableGlobalContext false sid initSelf sdescriptors xworker.lang.actions.JavaAction @/@actions/@getValuesForSelect sname getValuesForSelect sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName getValuesForSelect sdisableGlobalContext false Sdescription #$@text#$@

当本Model对应的SWT控件是下拉选择、列表、多项选择、单项选择等时,如果编辑控件没有设置供选择的值,那么该方法提供选择的值。

返回List<Thing>,Thing的定义参看属性的value子事物。

#$@text#$@ sid getValuesForSelect sdescriptors xworker.lang.actions.JavaAction @/@actions/@getValueForValidate sname getValueForValidate sisSynchronized false sthrowException true suseOtherAction false suseOuterJava true souterClassName xworker.swt.model.ModelCreator smethodName getValueForValidate sdisableGlobalContext false sid getValueForValidate sdescriptors xworker.lang.actions.JavaAction @/@name sname name slabel 名称 Sdescription #$@text#$@

Model的名称。

可以通过此名称在变量上下文actionContext取得本Model。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid name sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@swtControl sname swtControl slabel SWT控件 Sdescription #$@text#$@

Model所对应的SWT控件,用于对此控件取值、赋值等操作。

可以是Thing,此时会调用Thing的setValue、getValue和valudate方法赋值、取值和校验等。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid swtControl sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@dataSource sname dataSource slabel 数据源 Sdescription #$@text#$@

数据源。

如果数据源为空,那么使用父数据源。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid dataSource sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@propertyName sname propertyName slabel 属性名称 sdescription

如果指定了数据属性,那么是使用Ognl以数据属性为路径从数据源上取值和赋值的。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid propertyName sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@dataType sname dataType slabel 数据类型 sinputtype select Sdescription #$@text#$@

数据类型,默认是String类型。

当从控件取值时会转化为指定的数据类型,从数据源取值时不做类型校验。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid dataType sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@dataType/@bigDecimal sname bigDecimal slabel BigDecimal svalue BigDecimal sid bigDecimal sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@BigInteger sname BigInteger slabel BigInteger svalue BigInteger sid BigInteger sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@boolean sname boolean slabel Boolean svalue Boolean sid boolean sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@Char sname Char slabel Char svalue Char sid Char sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@Date sname Date slabel Date svalue Date sid Date sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@DateTime sname DateTime slabel DateTime svalue DateTime sid DateTime sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@Double sname Double slabel Double svalue Double sid Double sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@flaot sname flaot slabel Float svalue Float sid flaot sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@int sname int slabel Integer svalue Integer sid int sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@list sname list slabel List svalue List sid list sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@long sname long slabel Long svalue Long sid long sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@map sname map slabel Map svalue Map sid map sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@object sname object slabel Object svalue Object sid object sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@string sname string slabel String svalue String sid string sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@dataType/@Time sname Time slabel Time svalue Time sid Time sdescriptors xworker.lang.MetaDescriptor3/@attribute/@value @/@defaultValue sname defaultValue slabel 默认值 Sdescription #$@text#$@

如果从数据源取不到值,那么使用默认值。

如果默认值以"号包围那么表示是常量,否则认为是以默认值为名称从变量上下文actionContext中取值。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid defaultValue sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@viewPattern sname viewPattern slabel 查看样式 sreadOnly false sinheritDescription false sdescription

数据查看显示的样式。

svalidateAllowBlank true LvalidateOnBlur false LallowDecimals false LallowNegative false sid viewPattern sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@editPattern sname editPattern slabel 编辑样式 sdescription

当Swt控件获得焦点时,数据显示的样式,如果没有设置编辑样式编辑时保持查看样式。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid editPattern sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@foreground sname foreground slabel 前景色 sinputtype colorpicker sdescription

控件的前景色。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid foreground sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@background sname background slabel 背景色 sinputtype colorpicker sdescription

控件色背景色。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid background sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@validate sname validate slabel 是否校验 sinputtype truefalse sdefault true sdescription

如果选择false那么不校验此数据。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid validate sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@focus sname focus slabel 获取焦点 sinputtype truefalse Sdescription #$@text#$@

在初始化是SWT控件是否取得焦点。

可以用于设置一个输入表单的默认取得焦点的控件。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid focus sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@focusColor sname focusColor slabel 焦点颜色 sinputtype colorpicker sdefault "#E8FAFF" sdescription

当控件获得焦点时的背景色。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid focusColor sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@defaultSelection sname defaultSelection slabel 缺省选择事件 Sdescription #$@text#$@

控件的默认选择事件处理。

Button的点击和Text回车都会触发此事件,可以实现编辑表单输入回车提交表单的效果。

如果没有输入那么继承父Model的相应属性,父Model的事件约定以_parentModelDefaultSelection为变量名向下传递。

只接受通用事件。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid defaultSelection sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@defaultModify sname defaultModify slabel 默认修改事件 Sdescription #$@text#$@

当控件修改了数据后触发的默认事件。

 可以继承父Model所定义的事件,父Model约定以_parentModelDefaultModify为变量名向下传递。

只接受通用事件。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid defaultModify sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@Model sname Model sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.swt.model.Model sid Model @/@actions1 sname actions slabel Actions sdescriptors xworker.lang.MetaDescriptor2/@thing sextends xworker.lang.actions.Actions sid actions1 @/@actions1/@name sname name sid name sdescriptors xworker.lang.MetaDescriptor2/@attribute @/@validateAllowBlank sname validateAllowBlank slabel 允许为空 sinputtype truefalse sgroup 校验 sdefault true sdescription

是否允许为空。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid validateAllowBlank sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24889 sname blankText slabel 为空的提示 stype string ssize 60 scolspan 2 sgroup 校验 Sdescription #$@text#$@

The error text to display if the allowBlank validation fails (defaults to 'This field is required')

可以使用Freemarker模板。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24889 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24798 sname invalidClass slabel 错误样式 stype string sgroup 校验 sdescription The CSS class to use when marking a field invalid (defaults to 'x-form-invalid') sid 24798 sdescriptors xworker.lang.MetaDescriptor2/@attribute @/@24799 sname invalidText slabel 错误提示 stype string ssize 60 scolspan 2 sgroup 校验 Sdescription #$@text#$@
The error text to use when marking a field invalid and no message is provided (defaults to 'The value in this field i... #$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24799 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24807 sname validateOnBlur slabel 失去焦点时校验 stype boolean sinputtype truefalse sgroup 校验 sdefault true sdescription Whether the field should validate when it loses focus (defaults to true). LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24807 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24808 sname validationDelay slabel 校验延迟 stype number sgroup 校验 Sdescription #$@text#$@ The length of time in milliseconds after user input begins until validation is initiated (defaults to 250) #$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24808 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24898 sname maxLength slabel 最大长度 stype number sgroup 校验 Sdescription #$@text#$@
Maximum input field length allowed by validation (defaults to Number.MAX_VALUE). This behavior is intended to provide... #$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24898 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24900 sname minLength slabel 最小长度 stype number sgroup 校验 sdescription Minimum input field length required (defaults to 0) LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24900 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24902 sname regex slabel 正则表达式 stype regexp ssize 40 scolspan 2 sgroup 校验 Sdescription #$@text#$@
A JavaScript RegExp object to be tested against the field value during validation (defaults to null). If the test fai... #$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24902 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@regexText sname regexText slabel 正则表达式提示 ssize 60 scolspan 2 sgroup 校验 LvalidateOnBlur false LallowDecimals false LallowNegative false sid regexText sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24858 sname allowDecimals slabel 允许小数 stype boolean sinputtype truefalse sgroup 校验 sdefault true sdescription False to disallow decimal values (defaults to true) LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24858 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24859 sname allowNegative slabel 允许负数 stype boolean sinputtype truefalse sgroup 校验 sdefault true sdescription False to prevent entering a negative sign (defaults to true) LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24859 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24916 sname maxValue slabel 最大值 stype date/string sgroup 校验 Sdescription #$@text#$@
The maximum allowed time. Can be either a Javascript date object with a valid time value or a string time in a valid ... #$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24916 sdescriptors xworker.lang.MetaDescriptor3/@attribute @/@24918 sname minValue slabel 最小值 stype date/string sgroup 校验 Sdescription #$@text#$@
The minimum allowed time. Can be either a Javascript date object with a valid time value or a string time in a valid ... #$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid 24918 sdescriptors xworker.lang.MetaDescriptor3/@attribute




© 2015 - 2025 Weber Informatics LLC | Privacy Policy