I've been trying with all my might to get this GXT Window to close after calling addToPopupSlot(popupPresenterWidget) in the parent PresenterWidget.
I'm using code from
http://vivagwt.blogspot.com/ to extend the PopupViewWithUiHandlers, so that they work with GXT's Window. The window is displaying correctly, but the UiHandlers are acting funny and I'm not able to call getView().hide() on the Popup Presenter, so that the Window will close. Its like its perpetually being re-displayed.
For Example:
Popup Presenter
@Override
public void onCloseWindow() {
Window.alert("Foo bar!"); <---- This works.
getView().hide(); <------ This doesn't work.
}
Popup View
@UiHandler("closeButton")
void onCloseButtonClicked(SelectEvent event) {
if (getUiHandlers() != null) {
getUiHandlers().onCloseWindow();
}
}
Popup UiHandler
void onCloseWindow();
I've even created an event to relay the Close action to the parent presenter and within the parent PresenterWidget called an addToPopupSlot(null) with no results.
Any help would be great.
Thanks,
Derek