0
A
回答
2
将的变量传递给其他面板,怎么样?
public class PanelWithPopup extends Composite
{
FlowPanel thisPanel = new FlowPanel();
PopupPanel popup = new PopupPanel();
SomeOtherPanel otherPanel;
public PanelWithPopup()
{
// pass the popup panel to the SomeOtherPanel
otherPanel = new SomeOtherPanel(popup);
thisPanel.add(otherPanel);
initWidget(thisPanel);
}
}
public class SomeOtherPanel
{
PopupPanel popup;
public SomeOtherPanel(PopupPanel p)
{
this.popup = p;
}
void hidePopup()
{
popup.hide();
}
}
或者,如果其他的板的主面板内限定(即,如果SomeOtherPanel
是在PanelWithPopup
内定义),可以直接访问PopupPanel popup
。
相关问题
- 1. GWT Tab面板关闭
- 2. GWT弹出式面板是透明的?
- 3. 自动隐藏GWT弹出式面板
- 4. gwt中的弹出式面板
- 5. 在模式弹出关闭后刷新gridview内更新面板
- 6. 处理弹出式关闭的正确方法
- 7. 关闭模式弹出
- 8. 无法关闭弹出式
- 9. GWT PopupPanel不正确的弹出位置
- 10. Richfaces弹出式面板
- 11. GWT弹出式面板中的滚动条
- 12. 摆脱GWT弹出式面板中的白色框架
- 13. 如何在gwt中创建可选择的弹出式面板
- 14. 通过单击其子面板的按钮关闭弹出的面板
- 15. 确保弹出已关闭水豚/硒
- 16. 关闭Watir弹出的“确认导航”
- 17. primefaces弹出关闭
- 18. 斜面能够同时关闭弹出
- 19. 页面关闭时的弹出窗口
- 20. 关闭SP.UI.ModalDialog从代码后面弹出
- 21. 在页面关闭时弹出?
- 22. 弹出关闭刷新页面?
- 23. Bootstrap模式弹出自动关闭
- 24. 弹出模式关闭ajax响应
- 25. 如何关闭模式弹出窗口?
- 26. ESC KEP关闭弹出形式
- 27. JavaScript:弹出式窗口立即关闭
- 28. 关闭Swing模式弹出框
- 29. JFrame的弹出式关闭按钮
- 30. 使用jquery关闭模式弹出框