

Control is the abstract superclass of all windowed user interface classes.
| 字段摘要 | |
|---|---|
String |
background
Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null. |
String |
backgroundImage
Sets the receiver's background image to the image specified by the argument, or to the default system color for the control if the argument is null. |
String |
bounds
Sets the receiver's size and location to the rectangular area specified by the arguments. |
String |
capture
If the argument is true, causes the receiver to have all mouse events delivered to it until the method is called with false as the argument. |
String |
cls
样式名称。 |
String |
cursor
Sets the receiver's cursor to the cursor specified by the argument, or to the default cursor for that kind of control if the argument is null. |
String |
enabled
Enables the receiver if the argument is true, and disables it otherwise. |
String |
font
Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null. |
String |
foreground
Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null. |
String |
layoutData
Sets the layout data associated with the receiver to the argument. |
String |
location
Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null), unless the receiver is a shell. |
String |
menu
Sets the receiver's pop up menu to the argument. |
String |
parent
Changes the parent of the widget to be the one provided if the underlying operating system supports this feature. |
String |
redraw
If the argument is false, causes subsequent drawing operations in the receiver to be ignored. |
String |
region
Sets the shape of the control to the region specified by the argument. |
String |
size
Sets the receiver's size to the point specified by the arguments. |
String |
toolTipText
Sets the receiver's tool tip text to the argument, which may be null indicating that no tool tip text should be shown. |
String |
varref(变量引用)
引用上下文中的其他变量。 |
String |
visible
Marks the receiver as visible if the argument is true, and marks it invisible otherwise. |
String |
xw_cl_global(全局变量)
如果是全局变量,那么它将会放入到动作上下文中的索引为0的变量范围中。 |
String |
xw_cl_namespace(名字空间)
如果指定了名字空间,那么放入到指定的名字空间中。 |
String |
xw_cl_varName(变量名)
放入到动作上下文中的变量名称,如果没有则不放入到变量上下文中。 |
| 方法摘要 | |
|---|---|
|
addObjectToContext
|
|
init
参数 :control |
| 子事物摘要 | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
ControlListener
Classes which implement this interface provide methods that deal with the events that are generated by moving and resizing controls. |
|||||||||||||||||||||||||||||||||||||||||||
|
DisposeListener
Classes which implement this interface provide a method that deals with the event that is generated when a widget is disposed. |
|||||||||||||||||||||||||||||||||||||||||||
|
DragDetectListener
background
| |||||||||||||||||||||||||||||||||||||||||||
| 方法详细信息 |
|---|
参数 :control
| 子事物详细信息 |
|---|

Classes which implement this interface provide methods that deal with the events that are generated by moving and resizing controls.
After creating an instance of a class that implements this interface it can be added to a control using the addControlListener method and removed using the removeControlListener method. When a control is moved or resized, the appropriate method will be invoked.

Classes which implement this interface provide a method that deals with the event that is generated when a widget is disposed.
After creating an instance of a class that implements this interface it can be added to a widget using the addDisposeListener method and removed using the removeDisposeListener method. When a widget is disposed, the widgetDisposed method will be invoked.
see: DisposeListener

void |
dragDetected(DragDetectEvent e) Sent when a drag gesture is detected. |

DragSource defines the source object for a drag and drop transfer.

Class DropTarget defines the target object for a drag and drop transfer.






SWT通用事件监听。
通过指定事件的类型调用控件的addListener(int, Listener)方法注册事件监听。
SWT还有另一种事件监听是通过控件的addXXListener(XXLitener)方法注册的,此方法是那种方法不兼容,互相引用无效。

创建时不注册到控件的事件监听,通常用于多个控件都需要注册的事件监听,可以在创建后由控件增加监听时引用。








RowLayout can have its initial width and height specified by setting a RowData object into the control.
