@xworker.swt.model.ModelBak
sname
Model
slabel
Model
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
Sdescription
#$@text#$@
<p>Model实现了对SWT的编辑控件设置值、取值和数据校验等功能。</p>
<p>Model要处理的编辑控件的名称是在SWT控件属性中设置，要对控件赋的数据的名称是在数据源或属性名称中设置的，编辑控件和数据都是从当前动作上下文中获取。</p>
<p>Model可以嵌套，子Model可以沿用上级Model的数据，此时在&lsquo;属性名称&rsquo;中指定数据的属性名称。</p>
<p>本Model实现了一些常用的编辑控件的取值、赋值和校验等功能，如果有特殊需求可以覆盖本Model的相关动作（可以打开本事物进行查看）。本Model能够处理的编辑控件主要有：Text, StyledText, Label, Button, DateTime, CodeEditor, HtmlEditor等。</p>
#$@text#$@
@xworker.swt.model.ModelBak/@actions
sname
actions
sid
actions
slabel
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
@xworker.swt.model.ModelBak/@actions/@create
sname
create
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.swt.model.ModelCreator
smethodName
create
sdescription
<p>Model的创建动作。</p>
sid
create
sdescriptors
xworker.lang.actions.JavaAction
@xworker.swt.model.ModelBak/@actions/@setValue
sname
setValue
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.swt.model.ModelCreator
smethodName
setValue
sdisableGlobalContext
false
Sdescription
#$@text#$@
<p>通过Model设置值的动作。</p>
<p>设置值的过程：</p>
<ul>
    <li>通过dataSource和propertyName和defaultValue得到要设置的值。<br />
    如果dataSource为空那么数据默认从父Model传递，如果propertyName不为空那么取dataSource的属性，否则数据为dataSource，如果通过以上取数据还是为null那么使用defaultValue。</li>
    <li>实际调用doSetValue动作设置值。</li>
</ul>
#$@text#$@
sid
setValue
sdescriptors
xworker.lang.actions.JavaAction
@xworker.swt.model.ModelBak/@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
@xworker.swt.model.ModelBak/@actions/@validate
sname
validate
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.swt.model.ModelCreator
smethodName
validate
sdisableGlobalContext
false
Sdescription
#$@text#$@
<p>校验表单中的数据。</p>
<p>校验默认是遇到第一个校验失败的字段后就停止校验，并弹出错误提示框。如要改变这种模式可以传入validateType和validateMessages两个参数。</p>
<p>其中：</p>
<ul>
    <li><strong>validateType<br />
    </strong>default或空，默认遇到第一个校验失败就停止校验并弹出错误提示框<br />
    background，校验全部属性，如遇校验失败字段，则把校验失败信息追加到validateMessages中。<br />
    &nbsp;</li>
    <li><strong>validateMessages<br />
    </strong>List，用于存放校验失败的信息。<br />
    失败信息是一个Map，有control、value、message和type等属性，其中type为：blank（非空错误）、error（一般校验失败）和regex（正则表达式校验失败），type主要是指用了那个校验失败的提示语。</li>
</ul>
#$@text#$@
sid
validate
sdescriptors
xworker.lang.actions.JavaAction
@xworker.swt.model.ModelBak/@actions/@validate/@ins
sisValidate
false
sname
ins
sid
ins
slabel
ins
sdescriptors
xworker.lang.actions.Inout/@ins
@xworker.swt.model.ModelBak/@actions/@validate/@ins/@validateType
sname
validateType
stypeCheck
false
soptional
true
scheck
false
scheckLevel
exception
sid
validateType
sdescriptors
xworker.lang.actions.Inout/@ins/@param
@xworker.swt.model.ModelBak/@actions/@validate/@ins/@validateMessages
sname
validateMessages
stypeCheck
false
soptional
true
scheck
false
scheckLevel
exception
sid
validateMessages
sdescriptors
xworker.lang.actions.Inout/@ins/@param
@xworker.swt.model.ModelBak/@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
@xworker.swt.model.ModelBak/@actions/@doValidate/@ins
sisValidate
false
sname
ins
sid
ins
slabel
ins
sdescriptors
xworker.lang.actions.Inout/@ins
@xworker.swt.model.ModelBak/@actions/@doValidate/@ins/@message
sname
message
stypeCheck
false
soptional
true
scheck
false
scheckLevel
exception
sid
message
sdescriptors
xworker.lang.actions.Inout/@ins/@param
@xworker.swt.model.ModelBak/@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
@xworker.swt.model.ModelBak/@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
@xworker.swt.model.ModelBak/@actions/@getValuesForSelect
sname
getValuesForSelect
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.swt.model.ModelCreator
smethodName
getValuesForSelect
sdisableGlobalContext
false
Sdescription
#$@text#$@
<p>当本Model对应的SWT控件是下拉选择、列表、多项选择、单项选择等时，如果编辑控件没有设置供选择的值，那么该方法提供选择的值。</p>
<p>返回List&lt;Thing&gt;，Thing的定义参看属性的value子事物。</p>
#$@text#$@
sid
getValuesForSelect
sdescriptors
xworker.lang.actions.JavaAction
@xworker.swt.model.ModelBak/@name
sname
name
slabel
名称
Sdescription
#$@text#$@
<p>Model的名称。</p>
<p>可以通过此名称在变量上下文actionContext取得本Model。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
name
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@swtControl
sname
swtControl
slabel
SWT控件
Sdescription
#$@text#$@
<p>Model所对应的SWT控件，用于对此控件取值、赋值等操作。</p>
<p>可以是Thing，此时会调用Thing的setValue、getValue和valudate方法赋值、取值和校验等。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
swtControl
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@dataSource
sname
dataSource
slabel
数据源
Sdescription
#$@text#$@
<p>数据源。</p>
<p>如果数据源为空，那么使用父数据源。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
dataSource
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@propertyName
sname
propertyName
slabel
属性名称
sdescription
<p>如果指定了数据属性，那么是使用Ognl以数据属性为路径从数据源上取值和赋值的。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
propertyName
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@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.ModelBak/@dataType/@bigDecimal
sname
bigDecimal
slabel
BigDecimal
svalue
BigDecimal
sid
bigDecimal
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@BigInteger
sname
BigInteger
slabel
BigInteger
svalue
BigInteger
sid
BigInteger
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@boolean
sname
boolean
slabel
Boolean
svalue
Boolean
sid
boolean
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@Char
sname
Char
slabel
Char
svalue
Char
sid
Char
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@Date
sname
Date
slabel
Date
svalue
Date
sid
Date
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@DateTime
sname
DateTime
slabel
DateTime
svalue
DateTime
sid
DateTime
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@Double
sname
Double
slabel
Double
svalue
Double
sid
Double
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@flaot
sname
flaot
slabel
Float
svalue
Float
sid
flaot
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@int
sname
int
slabel
Integer
svalue
Integer
sid
int
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@list
sname
list
slabel
List
svalue
List
sid
list
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@long
sname
long
slabel
Long
svalue
Long
sid
long
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@map
sname
map
slabel
Map
svalue
Map
sid
map
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@object
sname
object
slabel
Object
svalue
Object
sid
object
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@string
sname
string
slabel
String
svalue
String
sid
string
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@dataType/@Time
sname
Time
slabel
Time
svalue
Time
sid
Time
sdescriptors
xworker.lang.MetaDescriptor3/@attribute/@value
@xworker.swt.model.ModelBak/@defaultValue
sname
defaultValue
slabel
默认值
Sdescription
#$@text#$@
<p>如果从数据源取不到值，那么使用默认值。</p>
<p>如果默认值以&quot;号包围那么表示是常量，否则认为是以默认值为名称从变量上下文actionContext中取值。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
defaultValue
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@viewPattern
sname
viewPattern
slabel
查看样式
sdescription
<p>数据查看显示的样式。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
viewPattern
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@editPattern
sname
editPattern
slabel
编辑样式
sdescription
<p>当Swt控件获得焦点时，数据显示的样式，如果没有设置编辑样式编辑时保持查看样式。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
editPattern
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@foreground
sname
foreground
slabel
前景色
sinputtype
colorpicker
sdescription
<p>控件的前景色。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
foreground
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@background
sname
background
slabel
背景色
sinputtype
colorpicker
sdescription
<p>控件色背景色。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
background
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@validate
sname
validate
slabel
是否校验
sinputtype
truefalse
sdefault
true
sdescription
<p>如果选择false那么不校验此数据。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
validate
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@focus
sname
focus
slabel
获取焦点
sinputtype
truefalse
Sdescription
#$@text#$@
<p>在初始化是SWT控件是否取得焦点。</p>
<p>可以用于设置一个输入表单的默认取得焦点的控件。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
focus
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@focusColor
sname
focusColor
slabel
焦点颜色
sinputtype
colorpicker
sdefault
"#E8FAFF"
sdescription
<p>当控件获得焦点时的背景色。</p>
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
focusColor
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@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
sid
defaultSelection
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@defaultModify
sname
defaultModify
slabel
默认修改事件
Sdescription
#$@text#$@
<p>当控件修改了数据后触发的默认事件。</p>
<p>&nbsp;可以继承父Model所定义的事件，父Model约定以_parentModelDefaultModify为变量名向下传递。</p>
<p>只接受通用事件。</p>
#$@text#$@
LvalidateOnBlur
false
LallowDecimals
false
LallowNegative
false
sid
defaultModify
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
@xworker.swt.model.ModelBak/@Model
sname
Model
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.swt.model.Model
sid
Model
@xworker.swt.model.ModelBak/@actions1
sname
actions
slabel
Actions
sdescriptors
xworker.lang.MetaDescriptor2/@thing
sextends
xworker.lang.actions.Actions
sid
actions1
@xworker.swt.model.ModelBak/@actions1/@name
sname
name
sid
name
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@validateAllowBlank
sname
validateAllowBlank
slabel
允许为空
sdefault
true
sinputtype
truefalse
sgroup
校验
sdescription
<p>是否允许为空。</p>
sid
validateAllowBlank
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24889
sname
blankText
slabel
为空的提示
stype
string
ssize
60
scolspan
2
sgroup
校验
Sdescription
#$@text#$@
<p>The error text to display if the <b><tt><a ext:cls="Ext.form.TextField" ext:member="allowBlank" href="output/Ext.form.TextField.html#Ext.form.TextField-allowBlank">allowBlank</a></tt></b> validation fails (defaults to <tt>'This field is required'</tt>)</p>
<p>可以使用Freemarker模板。</p>
#$@text#$@
sid
24889
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@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
@xworker.swt.model.ModelBak/@24799
sname
invalidText
slabel
错误提示
stype
string
ssize
60
scolspan
2
sgroup
校验
Sdescription
#$@text#$@
<div class="short">The error text to use when marking a field invalid and no message is provided
(defaults to 'The value in this field i...
#$@text#$@
sid
24799
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24807
sname
validateOnBlur
slabel
失去焦点时校验
stype
boolean
sdefault
true
sinputtype
truefalse
sgroup
校验
sdescription
Whether the field should validate when it loses focus (defaults to true).
sid
24807
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@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#$@
sid
24808
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24898
sname
maxLength
slabel
最大长度
stype
number
sgroup
校验
Sdescription
#$@text#$@
<div class="short">Maximum input field length allowed by validation (defaults to Number.MAX_VALUE).
This behavior is intended to provide...
#$@text#$@
sid
24898
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24900
sname
minLength
slabel
最小长度
stype
number
sgroup
校验
sdescription
Minimum input field length required (defaults to <tt>0</tt>)
sid
24900
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24902
sname
regex
slabel
正则表达式
stype
regexp
ssize
40
scolspan
2
sgroup
校验
Sdescription
#$@text#$@
<div class="short">A JavaScript RegExp object to be tested against the field value during validation
(defaults to null). If the test fai...
#$@text#$@
sid
24902
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@regexText
sname
regexText
slabel
正则表达式提示
ssize
60
scolspan
2
sgroup
校验
sid
regexText
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24858
sname
allowDecimals
slabel
允许小数
stype
boolean
sdefault
true
sinputtype
truefalse
sgroup
校验
sdescription
False to disallow decimal values (defaults to true)
sid
24858
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24859
sname
allowNegative
slabel
允许负数
stype
boolean
sdefault
true
sinputtype
truefalse
sgroup
校验
sdescription
False to prevent entering a negative sign (defaults to true)
sid
24859
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24916
sname
maxValue
slabel
最大值
stype
date/string
sgroup
校验
Sdescription
#$@text#$@
<div class="short">The maximum allowed time. Can be either a Javascript date object with a valid time value or a string
time in a valid ...
#$@text#$@
sid
24916
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
@xworker.swt.model.ModelBak/@24918
sname
minValue
slabel
最小值
stype
date/string
sgroup
校验
Sdescription
#$@text#$@
<div class="short">The minimum allowed time. Can be either a Javascript date object with a valid time value or a string
time in a valid ...
#$@text#$@
sid
24918
sdescriptors
xworker.lang.MetaDescriptor2/@attribute
