use of org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow in project midpoint by Evolveum.
the class PageCertDefinitions method getDeleteDefinitionConfirmationPanel.
private Popupable getDeleteDefinitionConfirmationPanel() {
return new ConfirmationPanel(getMainPopupBodyId(), createDeleteConfirmString()) {
@Override
public void yesPerformed(AjaxRequestTarget target) {
ModalWindow modalWindow = findParent(ModalWindow.class);
if (modalWindow != null) {
modalWindow.close(target);
deleteDefinitionPerformed(target, singleDelete);
}
}
};
}
use of org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow in project midpoint by Evolveum.
the class PageCertCampaigns method getDeleteSelectedCampaignsConfirmationPanel.
private Popupable getDeleteSelectedCampaignsConfirmationPanel() {
return new ConfirmationPanel(getMainPopupBodyId(), createDeleteSelectedCampaignsConfirmString()) {
private static final long serialVersionUID = 1L;
@Override
public void yesPerformed(AjaxRequestTarget target) {
ModalWindow modalWindow = findParent(ModalWindow.class);
if (modalWindow != null) {
modalWindow.close(target);
deleteSelectedCampaignsConfirmedPerformed(target);
}
}
@Override
public StringResourceModel getTitle() {
return createStringResource("PageCertCampaigns.dialog.title.confirmDeleteCampaign");
}
};
}
use of org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow in project midpoint by Evolveum.
the class PageCertCampaigns method getCloseStageConfirmationPanel.
private Popupable getCloseStageConfirmationPanel() {
return new ConfirmationPanel(getMainPopupBodyId(), createCloseStageConfirmString()) {
private static final long serialVersionUID = 1L;
@Override
public void yesPerformed(AjaxRequestTarget target) {
ModalWindow modalWindow = findParent(ModalWindow.class);
if (modalWindow != null) {
modalWindow.close(target);
closeStageConfirmedPerformed(target, relevantCampaign);
}
}
@Override
public StringResourceModel getTitle() {
return createStringResource("PageCertCampaigns.dialog.title.confirmCloseStage");
}
};
}
use of org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow in project midpoint by Evolveum.
the class InlineMenuButtonColumn method showConfirmationPopup.
private void showConfirmationPopup(InlineMenuItem menuItem, AjaxRequestTarget target) {
ConfirmationPanel dialog = new ConfirmationPanel(pageBase.getMainPopupBodyId(), menuItem.getConfirmationMessageModel()) {
private static final long serialVersionUID = 1L;
@Override
public StringResourceModel getTitle() {
return pageBase.createStringResource("pageUsers.message.confirmActionPopupTitle");
}
@Override
public void yesPerformed(AjaxRequestTarget target) {
ModalWindow modalWindow = findParent(ModalWindow.class);
if (modalWindow != null) {
modalWindow.close(target);
menuItem.getAction().onClick(target);
}
}
};
pageBase.showMainPopup(dialog, target);
}
use of org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow in project midpoint by Evolveum.
the class PageCertCampaigns method getCloseSelectedCampaignsConfirmationPanel.
private Popupable getCloseSelectedCampaignsConfirmationPanel() {
return new ConfirmationPanel(getMainPopupBodyId(), createCloseSelectedCampaignsConfirmString()) {
private static final long serialVersionUID = 1L;
@Override
public void yesPerformed(AjaxRequestTarget target) {
ModalWindow modalWindow = findParent(ModalWindow.class);
if (modalWindow != null) {
modalWindow.close(target);
closeSelectedCampaignsConfirmedPerformed(target);
}
}
@Override
public StringResourceModel getTitle() {
return createStringResource("PageCertCampaigns.dialog.title.confirmCloseCampaign");
}
};
}
Aggregations