@xworker.swt.model.CommonControlModel
sname
CommonControlModel
slabel
CommonControlModel
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
Sdescription
#$@text#$@
<p>涵盖了几个常用的Swt Control的Model。</p>
<p>能够处理的Control主要有：Text, StyledText, Label, Button, DateTime, CodeEditor, HtmlEditor等。</p>
#$@text#$@
@xworker.swt.model.CommonControlModel/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
@xworker.swt.model.CommonControlModel/@actions/@create
sname
create
sisSynchronized
true
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.swt.model.CommonControlModelCreator
smethodName
create
sdescriptors
xworker.lang.actions.JavaAction
@xworker.swt.model.CommonControlModel/@name
sname
name
slabel
名称
Sdescription
#$@text#$@
<p>Model的名称。</p>
<p>可以通过此名称在变量上下文actionContext取得本Model。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@swtControl
sname
swtControl
slabel
SWT控件
Sdescription
#$@text#$@
<p>SWT控件名称。</p>
<p>Model所对应的SWt控件，用于对此控件取值、赋值等操作。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@dataSource
sname
dataSource
slabel
数据源
Sdescription
#$@text#$@
<p>数据源。</p>
<p>如果数据源为空，那么使用父数据源。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@dataProperty
sname
dataProperty
slabel
数据属性
sdescription
<p>如果指定了数据属性，那么是使用Ognl以数据属性为路径从数据源上取值和赋值的。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@dataType
sname
dataType
slabel
数据类型
sinputtype
select
Sdescription
#$@text#$@
<p>数据类型，默认是String类型。</p>
<p>当从控件取值时会转化为指定的数据类型，从数据源取值时不做类型校验。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
dataType
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@dataType/@bigDecimal
sname
bigDecimal
slabel
BigDecimal
svalue
BigDecimal
sid
bigDecimal
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@BigInteger
sname
BigInteger
slabel
BigInteger
svalue
BigInteger
sid
BigInteger
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@boolean
sname
boolean
slabel
Boolean
svalue
Boolean
sid
boolean
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@Char
sname
Char
slabel
Char
svalue
Char
sid
Char
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@Date
sname
Date
slabel
Date
svalue
Date
sid
Date
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@DateTime
sname
DateTime
slabel
DateTime
svalue
DateTime
sid
DateTime
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@Double
sname
Double
slabel
Double
svalue
Double
sid
Double
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@flaot
sname
flaot
slabel
Float
svalue
Float
sid
flaot
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@int
sname
int
slabel
Integer
svalue
Integer
sid
int
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@long
sname
long
slabel
Long
svalue
Long
sid
long
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@string
sname
string
slabel
String
svalue
String
sid
string
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@dataType/@Time
sname
Time
slabel
Time
svalue
Time
sid
Time
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.CommonControlModel/@defaultValue
sname
defaultValue
slabel
默认值
Sdescription
#$@text#$@
<p>如果从数据源取不到值，那么使用默认值。</p>
<p>如果默认值以&quot;号包围那么表示是常量，否则认为是以默认值为名称从变量上下文actionContext中取值。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@viewPattern
sname
viewPattern
slabel
查看样式
sdescription
<p>数据查看显示的样式。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@editPattern
sname
editPattern
slabel
编辑样式
Sdescription
#$@text#$@
<p>当Swt控件获得焦点时，数据显示的样式。</p>
<p>通常在控件获得焦点时，控件处于编辑状态。</p>
<p>编辑样式一般常用于数字和日期的编辑。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@required
sname
required
slabel
必须
sinputtype
truefalse
sdescription
<p>输入是否必须，如果选择true那么不可以为空。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@requiredColor
sname
requiredColor
slabel
必须颜色
sinputtype
colorpicker
sdefault
"#FFFF99"
Sdescription
#$@text#$@
<p>当数据为必须输入时控件的颜色。</p>
<p>如果输入的值包含于引号，那么表示是常量，否则从变量山下文中取，默认值是&quot;#FFFF99&quot;。</p>
<p>如果设置了必须颜色，那么会替换控件的背景色。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@foreground
sname
foreground
slabel
前景色
sinputtype
colorpicker
sdescription
<p>控件的前景色。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@background
sname
background
slabel
背景色
sinputtype
colorpicker
sdescription
<p>控件色背景色。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@validate
sname
validate
slabel
是否校验
sinputtype
truefalse
sdefault
true
sdescription
<p>如果选择false那么不校验此数据。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@focus
sname
focus
slabel
获取焦点
sinputtype
truefalse
Sdescription
#$@text#$@
<p>在初始化是SWT控件是否取得焦点。</p>
<p>可以用于设置一个输入表单的默认取得焦点的控件。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@focusColor
sname
focusColor
slabel
焦点颜色
sinputtype
colorpicker
sdescription
<p>当控件获得焦点时的背景色。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@errorColor
sname
errorColor
slabel
错误颜色
sinputtype
colorpicker
sdescription
<p>当数据校验失败时控件的背景色。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@errorMessage
sname
errorMessage
slabel
错误消息
ssize
54
srowspan
1
scolspan
2
sdescription
<p>当数据校验失败时显示的错误提示信息。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@defaultSelection
sname
defaultSelection
slabel
缺省选择事件
Sdescription
#$@text#$@
<p>控件的默认选择事件处理。</p>
<p>Button的点击和Text回车都会触发此事件，可以实现编辑表单输入回车提交表单的效果。</p>
<p>如果没有输入那么继承父Model的相应属性，父Model的事件约定以_parentModelDefaultSelection为变量名向下传递。</p>
<p>只接受通用事件。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.CommonControlModel/@defaultModify
sname
defaultModify
slabel
默认修改事件
Sdescription
#$@text#$@
<p>当数据被修改后的通知数据已修改的默认事件。</p>
<p>&nbsp;可以继承父Model所定义的事件，父Model约定以_parentModelDefaultModify为变量名向下传递。</p>
<p>只接受通用事件，通用事件的类型为SWT.Modify。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
