如何在gwt中渲染元素?
从过去几个月开始,我正在研究 gwt-ext。我使用 Container 类的 doLayout() 方法。这里是它的描述。
强制重新计算此容器的布局。将新组件添加到已渲染的容器后,需要调用此函数。如果渲染后不是动态添加和移除组件,一般不需要调用这个函数。
做这个方法基本上是用来渲染容器的。 现在我使用的是 core gwt 2.3。有没有任何方法可以在 gwt 中渲染容器。或者有任何其他方法可以实现此目的???
提前致谢
From last few months I am working on gwt-ext.In that I am using a doLayout() method of Container class.Here is description of it.
Force this container's layout to be recalculated. A call to this function is required after adding a new component to an already rendered container. If you are not dynamically adding and removing components after render, this function will generally not need to be called.
Do this method is basically used to render container.
Now I am using core gwt 2.3. Is there any method to render the container in gwt.or any other way to achieve this ???
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AFAIK,GWT 不需要这个。只需在任何
Panel
上调用.add()
即可添加子项。它们应该立即可见。AFAIK, GWT does not require this. Just call
.add()
on anyPanel
to add children. They should be immediately visible.