GWT docklayoutpanel widget visibility

How to know that a widget is hidden once you have call the

dock.setWidgetHidden(widget, true);

as it seems we do not have access to Layoutdata I do not know how to do this.


使用继承,您可以扩展DockLayoutPanel类并将访问器写入LayoutData,或者只写一个布尔方法来告知widget x是否隐藏。


I think you can find something like this:

String visibility = myDockLayoutPanel.getWidgetContainerElement(childPanel).getStyle().getVisibility()

The visibility might be "visible | hidden | collapse | inherit"

链接地址: http://www.djcxy.com/p/63032.html

上一篇: 在overflow:hidden元素中放置绝对元素

下一篇: GWT docklayoutpanel小部件可见性