GWT:如何在另一个面板中添加DockLayoutPanel?不是RootLayoutPanel [英] GWT: How to add DockLayoutPanel inside another panel? Not the RootLayoutPanel
问题描述
是否可以在除RootLayoutPanel以外的其他面板中添加DockLayoutPanel?
如果是这样,你会怎么做?
我试图将其添加到HTMLPanel中,并且只在DockLayoutPanel的北部显示。
然后我在LayoutPanel内部尝试了它,它再次失败。
我认为它可以用于LayoutPanel,因为RootLayoutPanel是LayoutPanel的一个子类。
欢迎任何答案。
谢谢,
DockLayoutPanel
是 RequiresResize
小部件,因此要么将它放入 ProvideResize
小部件(任何所谓的布局面板)或您可以给它一个明确的大小。
Is it possible to add DockLayoutPanel inside another panel other than the RootLayoutPanel? If so, how would you do it? I attempted to add it inside HTMLPanel, and only north of the DockLayoutPanel shows. Then I tried it inside LayoutPanel, it failed again.
I thought it would have work for LayoutPanel because RootLayoutPanel is a subclass of LayoutPanel.
Any answers welcome. Thanks,
DockLayoutPanel
is a RequiresResize
widget, so either you put it inside a ProvidesResize
widget (any so called layout panel) or you give it an explicit size.
See the Using a LayoutPanel without RootLayoutPanel section in http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Recipes
这篇关于GWT:如何在另一个面板中添加DockLayoutPanel?不是RootLayoutPanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!