use of de.tudarmstadt.ukp.clarin.webanno.support.dialog.ChallengeResponseDialog in project webanno by webanno.
the class AnnotationPageBase method createOrGetResetDocumentDialog.
protected ChallengeResponseDialog createOrGetResetDocumentDialog() {
if (resetDocumentDialog == null) {
IModel<String> documentNameModel = PropertyModel.of(getModel(), "document.name");
resetDocumentDialog = new ChallengeResponseDialog("resetDocumentDialog", new StringResourceModel("ResetDocumentDialog.title", this), new StringResourceModel("ResetDocumentDialog.text", this).setModel(getModel()).setParameters(documentNameModel), documentNameModel);
resetDocumentDialog.setConfirmAction(this::actionResetDocument);
}
return resetDocumentDialog;
}
Aggregations