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關閉模式彈出框