@Override public void onSubmit(AjaxRequestTarget target, Form form) { gsDialog.setTitle(new Model(windowTitle)); gsDialog.showOkCancel(target, new GeoServerDialog.DialogDelegate() {
@Override public void onSubmit(AjaxRequestTarget target, Form<?> form) { gsDialog.setTitle(new Model<String>(windowTitle)); gsDialog.showOkCancel( target,
@Override public void onClick(AjaxRequestTarget target) { GeoServerDialog dialog = RepositoriesListPanel.this.dialog; dialog.setTitle( new ParamResourceModel("RepositoriesListPanel.confirmRemoval.title", this)); dialog.showOkCancel( target, new GeoServerDialog.DialogDelegate() { private static final long serialVersionUID = -450822090965263894L; @Override protected Component getContents(String id) { return new ConfirmRemovePanel(id, model); } @Override protected boolean onSubmit( AjaxRequestTarget target, Component contents) { boolean closeConfirmDialog = true; final String repoId = model.getObject().getId(); RepositoryManager.get().delete(repoId); return closeConfirmDialog; } @Override public void onClose(AjaxRequestTarget target) { target.add(RepositoriesListPanel.this); } }); } };
@Override public void onClick(AjaxRequestTarget target) { GeoServerDialog dialog = ConfigListPanel.this.dialog; dialog.setTitle( new ParamResourceModel("ConfigListPanel.confirmRemoval.title", this)); dialog.showOkCancel( target, new GeoServerDialog.DialogDelegate() { private static final long serialVersionUID = -450822090965263894L; @Override protected Component getContents(String id) { return new ConfirmRemovePanel(id, model); } @Override protected boolean onSubmit( AjaxRequestTarget target, Component contents) { boolean closeConfirmDialog = true; final ConfigEntry config = model.getObject(); List<ConfigEntry> items = ConfigListPanel.this.provider.getItems(); items.remove(config); target.add(ConfigListPanel.this); return closeConfirmDialog; } @Override public void onClose(AjaxRequestTarget target) { target.add(ConfigListPanel.this); } }); } };
dialog.setTitle(new ParamResourceModel("chooseSrs", this));
@Override public void onClick(AjaxRequestTarget target) { GeoServerDialog dialog = RemotesListPanel.this.dialog; dialog.setTitle( new ParamResourceModel("RemotesListPanel.confirmRemoval.title", this)); dialog.showOkCancel( target, new GeoServerDialog.DialogDelegate() { private static final long serialVersionUID = -450822090965263894L; @Override protected Component getContents(String id) { return new ConfirmRemovePanel(id, model); } @Override protected boolean onSubmit( AjaxRequestTarget target, Component contents) { boolean closeConfirmDialog = true; final RemoteInfo remote = model.getObject(); List<RemoteInfo> items = RemotesListPanel.this.provider.getItems(); items.remove(remote); target.add(RemotesListPanel.this); return closeConfirmDialog; } @Override public void onClose(AjaxRequestTarget target) { target.add(RemotesListPanel.this); } }); } };
@Override protected void onSubmit(AjaxRequestTarget target, Form form) dialog.setTitle(new ParamResourceModel("chooseDirectory", this)); dialog.showOkCancel(target, new GeoServerDialog.DialogDelegate()
@Override protected void onSubmit(AjaxRequestTarget target, Form form) dialog.setTitle(new ParamResourceModel("chooseDirectory", this)); dialog.showOkCancel(target, new GeoServerDialog.DialogDelegate()
return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
if (selection.size() == 0) return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
if (selection.size() == 0) return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
if (selection.size() == 0) return; dialog.setTitle(new ParamResourceModel("confirmRemoval", this));
@Override public void onClick(AjaxRequestTarget target) dialog.setTitle(new ParamResourceModel("dialogTitle", GeneralStoreParamPanel.this)); dialog.setInitialWidth(400); dialog.setInitialHeight(150);