rendered paste bodypackage webapp.modal;
import components.persistance.pojo.Brand;
import wicket.Page;
import wicket.ajax.AjaxRequestTarget;
import wicket.extensions.ajax.markup.html.modal.ModalWindow;
import wicket.extensions.markup.html.repeater.data.DataView;
import wicket.markup.html.link.Link;
public class BrandWindow extends ModalWindow {
public BrandWindow(String arg0,Brand brand) {
super(arg0);
this.setResizable(true);
this.setCookieName("Brand Edit");
this.setPageMapName("Brand Edit");
this.setInitialHeight(50);
this.setInitialWidth(200);
this.setWidthUnit("em");
this.setHeightUnit("em");
this.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
final BrandWindowPage page = new BrandWindowPage(brand);
this.setMinimalHeight(50);
this.setMinimalWidth(200);
this.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {
public boolean onCloseButtonClicked(AjaxRequestTarget arg0) {
return true;
}
});
this.setPageCreator(new ModalWindow.PageCreator() {
public Page createPage() {
return page;
}
});
}
}