use of com.evolveum.midpoint.web.component.dialog.ConfirmationPanel in project midpoint by Evolveum.
the class OrgMemberPanel method deleteManagerPerformed.
private void deleteManagerPerformed(final FocusType manager, final Component summary, AjaxRequestTarget target) {
ConfirmationPanel confirmDelete = new ConfirmationPanel(getPageBase().getMainPopupBodyId(), createStringResource("TreeTablePanel.menu.deleteManager.confirm")) {
@Override
public void yesPerformed(AjaxRequestTarget target) {
OrgMemberPanel.this.deleteManagerConfirmPerformed(manager, target);
summary.getParent().setVisible(false);
target.add(OrgMemberPanel.this);
}
};
getPageBase().showMainPopup(confirmDelete, target);
}
use of com.evolveum.midpoint.web.component.dialog.ConfirmationPanel in project midpoint by Evolveum.
the class FocusProjectionsTabPanel method getDeleteProjectionPopupContent.
private Popupable getDeleteProjectionPopupContent() {
ConfirmationPanel dialog = new ConfirmationPanel(getPageBase().getMainPopupBodyId(), new AbstractReadOnlyModel<String>() {
private static final long serialVersionUID = 1L;
@Override
public String getObject() {
return createStringResource("pageAdminFocus.message.deleteAccountConfirm", getSelectedProjections(projectionModel).size()).getString();
}
}) {
private static final long serialVersionUID = 1L;
@Override
public void yesPerformed(AjaxRequestTarget target) {
ModalWindow modalWindow = findParent(ModalWindow.class);
if (modalWindow != null) {
modalWindow.close(target);
deleteAccountConfirmedPerformed(target, getSelectedProjections(projectionModel));
}
}
};
return dialog;
}
use of com.evolveum.midpoint.web.component.dialog.ConfirmationPanel in project midpoint by Evolveum.
the class MenuLinkPanel method showConfirmationPopup.
private void showConfirmationPopup(InlineMenuItem menuItem, AjaxRequestTarget target) {
ConfirmationPanel dialog = new ConfirmationPanel(((PageBase) getPage()).getMainPopupBodyId(), menuItem.getConfirmationMessageModel()) {
private static final long serialVersionUID = 1L;
@Override
public StringResourceModel getTitle() {
return 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) getPage()).showMainPopup(dialog, target);
}
Aggregations