1 package eu
.etaxonomy
.vaadin
.mvp
;
3 import com
.vaadin
.ui
.Window
;
5 import eu
.etaxonomy
.vaadin
.ui
.view
.PopupView
;
14 public abstract class AbstractPopupView
<P
extends AbstractPresenter
> extends AbstractView
<P
> implements PopupView
{
16 private Window window
;
18 protected void updateWindowCaption(String caption
) {
19 window
.setCaption(caption
);
26 public boolean isResizable() {
34 public int getWindowPixelWidth() {
42 public boolean isModal() {
50 public boolean isWindowCaptionAsHtml() {
55 public void viewEntered(){
56 getPresenter().onViewEnter();
59 /* Methods which existed in the original version of the AbstractPopupView
60 * There are not needed here since the creation of the window and disposal
61 * is done by the NavigationManagerBean
63 protected void onViewReady() {
66 window = new Window();
67 window.setWidth(getWindowPixelWidth(), Unit.PIXELS);
68 window.setModal(isModal());
69 window.setContent(this);
71 UI.getCurrent().addWindow(window);