然后,父容器使用这些属性度量它本身。
The parent container then uses these properties to measure itself.
这是因为必须在度量父容器之前度量子容器。
This is because the children must be measured before the parent can be measured.
给出将现有控件分配到新的父容器的说明。
Gives directions for assigning existing controls to a new parent container.
如果有父容器的话,则该点可完全卷动至检视内。
It is scrolled fully into view within its parent container, if any.
不必显式地将按钮添加到框架,只要将框架标识为父容器就可以了。
You don't need to explicitly add the button to the frame; merely identifying the frame as the parent container does the trick.
这确保当父容器收到度量调用时,已经度量了它的子容器。
This ensures that when the parent container receives a call for a measurement, its children will have been measured already.
父容器应使用空布局,你可以随意设置你的球面板的位置。
The parent container should be using a null layout so you can randomly set the location of your Ball panel.
如果没有父容器被指定,默认它的父对象被指定为它的容器。
If a container is not specified, its element's parent is set as the container.
当小部件或它的父容器被关闭,SWT删除侦听器,从而打破那个牢固的关联。
When the widget, or its containing parent, is disposed, SWT removes the listeners, thereby breaking the strong association.
为了补偿这一点,我们添加了支持,以允许父容器定期地(比如每隔0.1秒)重新绘制它自己。
To compensate for this we added support to allow the parent container to periodically (say every 0.1 second) repaint itself.
您需要使用度量阶段,因为它帮助LayoutManager 确定父容器是否包含滚动条。
You need the measurement phase because it helps LayoutManager decide whether there should be scroll bars on the parent container.
相反,你应该画球的位置(0,0)在你的球面板然后设置球面板相对于父容器的位置。
Instead you should be painting the ball at location (0, 0) within your ball panel and then set the location of the ball panel relative to the parent container.
当你必须在子组件创建之前设置一个父容器的属性情况下,这个事件是非常有用的,但是这样的情况是很少用到的。
It is only useful in rare situations when you must set properties on a parent before the children are created.
绘图API需要使用绝对值,以便将它们传递到paintIcon方法中,避免不得不遍历组件的所有父容器来计算这些值。
The drawing APIs need to use absolute values so having them passed into the paintIcon method avoids having to compute them by traversing all the parents of the component.
我们用于缩放和平移组件以跨多单元显示的技术,使用了一个父容器,该容器提供一个新的Graphics2D对象,在该对象中绘制子组件。
The technique we used to scale and shift the components to show across multiple cells used a parent container, which provided a new Graphics2D object in which to paint the children.
您的第一个想法可能是使用label的父容器的 localToGlobal,因为 label 的x和y 坐标都与它的父容器box 的 x 和 y 坐标相对应。
Your first thought might be to use the localToGlobal of the label's parent because x and y of the label are relative to the x and y of its parent, box.
通用工作流项目记录可以作为已知产品版本所有问题的容器或父记录。
A common workflow Project record could act as a container or parent record to all Issues for a given product release.
当宿主的构造函数被调用时,该宿主使用父服务提供程序(IServiceProvider)来构建它的服务容器。
When the constructor of the host is called, the host USES the parent service provider (IServiceProvider) to construct its service container.
这将告诉装载Grails应用程序的类装载程序忽略这些包中可用于父类装载程序(即,容器的类装载程序)的所有类。
This tells the class loader that will load our Grails app, to ignore any classes from these packages available to the parent class loader (i.e., the container's class loader).
表单的父对象是一个具有runat属性的总容器控件。
The parent object of the form is the outer container control that has the runat attribute set.
访问当前img元素的父元素,也就是它的容器。
Get access to the element that is the parent — that is, the container — of the current img element.
容器层次结构允许您毫不费力地访问父元素中的所有子元素,例如,允许访问与某一特定客户相关的所有订单。
A containment hierarchy allows the access of all child elements from a parent very easily, for instance, access to all orders associated with a specific customer.
这可以显著的提高合并的速度,因为只有那些变更过的片段会载入(还有它们的逻辑模型的父类容器)。
This significantly speeds the merge session, because only those fragments that are changed are loaded (along with their parent containers of the logical model).
巢状容器这个物件是逻辑上包含零或多个子元件,并且由某个父元件所拥有,但视觉上不一定如此。
A nested container is an object that logically, but not necessarily visually, contains zero or more child components and is owned by some parent component.
将指定的服务型别从服务容器移除,并且选择性地将服务升级到父服务容器。
Removes the specified service type from the service container, and optionally promotes the service to parent service containers.
将指定服务添加到服务容器中,并可选择将该服务提升到父服务容器。
Adds the specified service to the service container, and optionally promotes the service to parent service containers.
提供嵌套容器的功能,嵌套容器逻辑上可包含零个或多个其他组件,且这类容器由父组件拥有。
Provides functionality for nested containers, which logically contain zero or more other components and are owned by a parent component.
父视图容器包含子视图,与之对应,父pm也包含子PM。
The parent view contains the child views, and likewise, the parent PM contains the child PMs.
父视图容器包含子视图,与之对应,父pm也包含子PM。
The parent view contains the child views, and likewise, the parent PM contains the child PMs.
应用推荐