GWT:如何在另一个面板中添加DockLayoutPanel?不是RootLayoutPanel [英] GWT: How to add DockLayoutPanel inside another panel? Not the RootLayoutPanel

查看:93
本文介绍了GWT:如何在另一个面板中添加DockLayoutPanel?不是RootLayoutPanel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在除RootLayoutPanel以外的其他面板中添加DockLayoutPanel?
如果是这样,你会怎么做?
我试图将其添加到HTMLPanel中,并且只在DockLayoutPanel的北部显示。
然后我在LayoutPanel内部尝试了它,它再次失败。



我认为它可以用于LayoutPanel,因为RootLayoutPanel是LayoutPanel的一个子类。



欢迎任何答案。
谢谢,

解决方案

DockLayoutPanel RequiresResize 小部件,因此要么将它放入 ProvideResize 小部件(任何所谓的布局面板)或您可以给它一个明确的大小。



请参阅部分 .com / webtoolkit / doc / latest / DevGuideUiPanels.html#Recipesrel =nofollow> http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Recipes


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆