To provide this type of refined control for each cell, the controls added to a GridLayout managed composite can have instances of GridData (a LayoutData sub-class).
为了给每个单元格提供这种精确控制,添加到 GridLayout 的托管复合控件的控件可以拥有 GridData 实例(LayoutData 的子类)。
Some layout managers are controlled by parameters just on themselves, and others also require additional parameters, LayoutData, specified on each control in the composite they manage.
一些布局管理器只使用它们自身的参数就可以控制,而另一些布局管理器还需要其他参数——Layout Data,该参数是在它们管理的复合控件中的每个控件上指定的。
应用推荐