Search in sources :

Example 1 with ChallengeResponseDialog

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;
}
Also used : ChallengeResponseDialog(de.tudarmstadt.ukp.clarin.webanno.support.dialog.ChallengeResponseDialog) StringResourceModel(org.apache.wicket.model.StringResourceModel)

Aggregations

ChallengeResponseDialog (de.tudarmstadt.ukp.clarin.webanno.support.dialog.ChallengeResponseDialog)1 StringResourceModel (org.apache.wicket.model.StringResourceModel)1