in the SWT editing, over-the things that can be further expanded property editor control functions, this thing is equivalent to SWT things. p>
edit control when the property has been created, it will call the create method of this thing, this time can be variable paren to access the properties of the corresponding edit control. . p>
created when the action attribute contains the property editor control, context variables, but also includes some default initial Face: p>
字段摘要 | |
---|---|
String |
varref(变量引用)
引用上下文中的其他变量。 |
String |
xw_cl_global(全局变量)
如果是全局变量,那么它将会放入到动作上下文中的索引为0的变量范围中。 |
String |
xw_cl_namespace(名字空间)
如果指定了名字空间,那么放入到指定的名字空间中。 |
String |
xw_cl_varName(变量名)
放入到动作上下文中的变量名称,如果没有则不放入到变量上下文中。 |
方法摘要 | |
---|---|
|
addObjectToContext
|
子事物摘要 | |
---|---|
|
DataStore
|
|
FormData
|
|
GridData
|
|
Menu
|
|
RowData
Each control controlled by a RowLayout can have its initial width and height specified by setting a RowData object into the control. |
|
background
|
|
backgroundImage
|
|
cursor
|
|
font
|
|
foreground
|
|
listeners
SWT通用事件监听。 |
|
listenersPrepared
创建时不注册到控件的事件监听,通常用于多个控件都需要注册的事件监听,可以在创建后由控件增加监听时引用。 |
字段详细信息 |
---|
引用上下文中的其他变量。
如果是全局变量,那么它将会放入到动作上下文中的索引为0的变量范围中。
如果指定了名字空间,那么放入到指定的名字空间中。
名字空间是放到动作上下文中的全局变量中的,每一个名字空间是一个Map,名字空间可以嵌套,如XWorker.util.file等。注意:需要自行处理名字空间中的变量生命周期。
有一个特殊变量空间是xw_objects,xw_objects的结构是根据创建变量的顺序而产生的树形结构,每一个节点的构成如下:
{
name: //名字
id: //标识
value: //值,注意这里是软引用,系统垃圾回收后值的内容会消失
thingEntry: //创建该变量的事物引用实体
childs: //下一级子事物列表
}
动作上下文是公用的,本事物的名字前缀是xw_cl_,请注意不要重复。
放入到动作上下文中的变量名称,如果没有则不放入到变量上下文中。
方法详细信息 |
---|
子事物详细信息 |
---|
RowLayout
can have its initial width and height specified by setting a RowData
object into the control.
SWT通用事件监听。
通过指定事件的类型调用控件的addListener(int, Listener)方法注册事件监听。
SWT还有另一种事件监听是通过控件的addXXListener(XXLitener)方法注册的,此方法是那种方法不兼容,互相引用无效。
创建时不注册到控件的事件监听,通常用于多个控件都需要注册的事件监听,可以在创建后由控件增加监听时引用。