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

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

@xworker.swt.model.ControlModel
sname
ControlModel
slabel
ControlModel
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
Sdescription
#$@text#$@

涵盖了几个常用的Swt Control的Model。

能够处理的Control主要有:Text, StyledText, Label, Button, DateTime, CodeEditor, HtmlEditor等。

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

Model的创建动作。

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

通过Model设置值的动作。

设置值的过程:

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

Model的名称。

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

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid name sdescriptors xworker.lang.MetaDescriptor3/@attribute @xworker.swt.model.ControlModel/@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 @xworker.swt.model.ControlModel/@dataSource sname dataSource slabel 数据源 Sdescription #$@text#$@

数据源。

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

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

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

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

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

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

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

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

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

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

数据查看显示的样式。

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

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

LvalidateOnBlur false LallowDecimals false LallowNegative false sid editPattern sdescriptors xworker.lang.MetaDescriptor3/@attribute @xworker.swt.model.ControlModel/@required sname required slabel 必须 sinputtype truefalse sdescription

输入是否必须,如果选择true那么不可以为空。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid required sdescriptors xworker.lang.MetaDescriptor3/@attribute @xworker.swt.model.ControlModel/@requiredColor sname requiredColor slabel 必须颜色 sinputtype colorpicker sdefault "#FFFF99" Sdescription #$@text#$@

当数据为必须输入时控件的颜色。

如果输入的值包含于引号,那么表示是常量,否则从变量山下文中取,默认值是"#FFFF99"。

如果设置了必须颜色,那么会替换控件的背景色。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid requiredColor sdescriptors xworker.lang.MetaDescriptor3/@attribute @xworker.swt.model.ControlModel/@foreground sname foreground slabel 前景色 sinputtype colorpicker sdescription

控件的前景色。

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

控件色背景色。

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

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

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

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

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

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

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

LvalidateOnBlur false LallowDecimals false LallowNegative false sid focusColor sdescriptors xworker.lang.MetaDescriptor3/@attribute @xworker.swt.model.ControlModel/@errorColor sname errorColor slabel 错误颜色 sinputtype colorpicker sdescription

当数据校验失败时控件的背景色。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid errorColor sdescriptors xworker.lang.MetaDescriptor3/@attribute @xworker.swt.model.ControlModel/@errorMessage sname errorMessage slabel 错误消息 ssize 54 srowspan 1 scolspan 2 sdescription

当数据校验失败时显示的错误提示信息。

LvalidateOnBlur false LallowDecimals false LallowNegative false sid errorMessage sdescriptors xworker.lang.MetaDescriptor3/@attribute @xworker.swt.model.ControlModel/@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 @xworker.swt.model.ControlModel/@defaultModify sname defaultModify slabel 默认修改事件 Sdescription #$@text#$@

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

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

只接受通用事件。

#$@text#$@ LvalidateOnBlur false LallowDecimals false LallowNegative false sid defaultModify sdescriptors xworker.lang.MetaDescriptor3/@attribute @xworker.swt.model.ControlModel/@ControlModel sname ControlModel sdescriptors xworker.lang.MetaDescriptor3/@thing sextends xworker.swt.model.ControlModel sid ControlModel




© 2015 - 2025 Weber Informatics LLC | Privacy Policy