对于SWT,控件是窗口小部件。
这里,我添加一个标签窗口小部件。
窗口小部件类:其他通用控件。
窗口小部件选项都作为命名的参数传递。
这些窗口小部件被安排在继承层次结构中。
更确切地讲,它可使窗口小部件在行尾换行。
SWT库反映了主机操作系统的基本窗口小部件。
The SWT library reflects the basic widgets of the host operating system.
一些定制的软件包控件类似于窗口小部件包中的控件。
Some custom package controls are similar to controls in the widgets package.
文本窗口小部件和条目窗口小部件都实现了这个接口。
Both the text widget and the entry widget implement this interface.
接着我们将看看如何修改标准窗口小部件所使用的图标。
Then we'll review how the ICONS used by the standard widgets can be modified.
相反,窗口小部件可以在其构造函数中引用它们的父代。
Instead, widgets take a reference to their parent in their constructors.
此应用程序简单说明了SWT和关联窗口小部件的功能。
This application is a simple illustration of the power of SWT and the associated widgets.
首先,尽管标签本身是窗口小部件,但它们不需要被包装。
First, although the tabs are widgets themselves, they do not need to be packed.
组(group)是在窗口小部件周围绘制一个边框的组合。
The group is a composite that draws a border around its widgets.
必须获取底层SWTShell窗口小部件并设置其标题。
You must get at the underlying SWT Shell widget and set its title.
在所有这些窗口小部件的核心部分其实就只是一个XML文件。
它可以(实际上是必须)在程序中与其他窗口小部件组合使用。
It can (in fact, it has to) be combined with other widgets in a program.
它提供了完整的窗口小部件集并支持Unicode和双向文本。
It provides a comprehensive set of widgets and supports Unicode and bidirectional text.
一种解决方案是让所有对窗口小部件/选择对象的访问都经过窗口。
One solution is to funnel all the access to widgets/selection objects through the window.
因为所有这些原因,我们的窗口小部件类在IBM 中非常流行。
For all these reasons, our widget classes have been very popular across IBM.
其它窗口小部件示例包含在anygui分发版的test目录中。
Other widget examples are contained in the test directory of the anygui distribution.
这里,我将窗口小部件设置为可视的,然后启动GTK +主事件循环。
Here I set the widgets to be visible, and start the GTK + main event loop.
不同的是现在可以充分利用SWT窗口小部件和Eclipse框架。
The difference is that you can now take full advantage of the SWT widgets and Eclipse framework.
这里所讨论的所有窗口小部件都可以作为用户贡献从CPAN免费下载。
All the widgets discussed here are freely available as user contributions from CPAN.
您可能认为没有太大必要为文本字段和列表框之外的控件创建窗口小部件类。
You might think that there's not much reason to create widget classes for controls other than text fields and list boxes.
我们在窗口小部件类中调用了其中多种方法,使窗口小部件类功能更加强大。
We call many of these methods in our widget classes, making our widget classes even more powerful.
要查看ListBox窗口小部件类,请参阅this sidefile。
在本文中,我们将说明如何创建这些封装器类,我们称这些类为窗口小部件类。
In this article, we show you how we created these wrapper classes, which we call widget classes.
本质上,这个策略是创建带回调的一串窗口小部件,然后进入一个主事件循环。
Essentially, the strategy is to create a bunch of widgets with callbacks, then enter a main event loop.
不过,在CPAN上有很多作为用户贡献的窗口小部件,提供了更为复杂的功能。
However, a number of widgets that provide more complex functionality are available as user contributions on CPAN.
应用推荐