public interface PopupView extends View
View
classes that is meant to be displayed as a
popup, like a GWT PopupPanel
or a
DialogBox
.Modifier and Type | Method and Description |
---|---|
void |
center()
Make sure the
PopupView is centered in the browser's client area. |
void |
hide()
Make sure the
PopupView is hidden. |
void |
setAutoHideOnNavigationEventEnabled(boolean autoHide)
Indicates that the view should automatically hide when a GWTP
NavigationEvent is fired. |
void |
setCloseHandler(PopupViewCloseHandler popupViewCloseHandler)
Identifies which
PopupViewCloseHandler should be called when this
view closed (either automatically or through a call to hide() . |
void |
setPosition(int left,
int top)
Reposition the
PopupView within the browser's client area. |
void |
show()
Important!
|
addToSlot, removeFromSlot, setInSlot
void center()
PopupView
is centered in the browser's client area.
This method should not change the view visibility: if it was hidden (resp.
visible) it remains hidden (resp. visible).void hide()
PopupView
is hidden. You can call this method
directly.void setAutoHideOnNavigationEventEnabled(boolean autoHide)
NavigationEvent
is fired. This is
better than using GWT's
PopupPanel.setAutoHideOnHistoryEventsEnabled(boolean)
since the latter will automatically hide the dialog even if navigation is
refused through
PlaceManager.setOnLeaveConfirmation(String)
.void setCloseHandler(PopupViewCloseHandler popupViewCloseHandler)
PopupViewCloseHandler
should be called when this
view closed (either automatically or through a call to hide()
.popupViewCloseHandler
- The PopupViewCloseHandler
or
null
to unregister any handlers.void setPosition(int left, int top)
PopupView
within the browser's client area. This
method should not change the view visibility: if it was hidden (resp.
visible) it remains hidden (resp. visible).left
- The left position of the top-left corner (in pixels).top
- The top position of the top-left corner (in pixels).void show()
PresenterWidget.addToPopupSlot(PresenterWidget)
passing this
view's PresenterWidget
.
Make sure the PopupView
is visible.Copyright © 2010–2014 Arcbees. All rights reserved.