&& r.getAnnotation().equals(s.getLabel())) .forEach(record -> { if (REJECTED.equals(record.getUserAction())) { s.hide(FLAG_REJECTED); && SKIPPED.equals(record.getUserAction())) { s.hide(FLAG_SKIPPED);
&& r.getAnnotation().equals(s.getLabel())) .forEach(record -> { if (REJECTED.equals(record.getUserAction())) { s.hide(FLAG_REJECTED); && SKIPPED.equals(record.getUserAction())) { s.hide(FLAG_SKIPPED);
@Override protected void populateItem(ListItem<LearningRecord> item) { LearningRecord rec = item.getModelObject(); AnnotationFeature recAnnotationFeature = rec.getAnnotationFeature(); String recFeatureValue; if (recAnnotationFeature != null) { FeatureSupport featureSupport = featureSupportRegistry .getFeatureSupport(recAnnotationFeature); recFeatureValue = featureSupport .renderFeatureValue(recAnnotationFeature, rec.getAnnotation()); } else { recFeatureValue = rec.getAnnotation(); } LambdaAjaxLink textLink = new LambdaAjaxLink(CID_JUMP_TO_ANNOTATION, _target -> actionSelectHistoryItem(_target, item.getModelObject())); textLink.setBody(rec::getTokenText); item.add(textLink); item.add(new Label(CID_RECOMMENDED_ANNOTATION, recFeatureValue)); item.add(new Label(CID_USER_ACTION, rec.getUserAction())); item.add( new LambdaAjaxLink(CID_REMOVE_RECORD, t -> actionRemoveHistoryItem(t, rec))); } };
@Override protected void populateItem(ListItem<LearningRecord> item) { LearningRecord rec = item.getModelObject(); AnnotationFeature recAnnotationFeature = rec.getAnnotationFeature(); String recFeatureValue; if (recAnnotationFeature != null) { FeatureSupport featureSupport = featureSupportRegistry .getFeatureSupport(recAnnotationFeature); recFeatureValue = featureSupport .renderFeatureValue(recAnnotationFeature, rec.getAnnotation()); } else { recFeatureValue = rec.getAnnotation(); } LambdaAjaxLink textLink = new LambdaAjaxLink(CID_JUMP_TO_ANNOTATION, _target -> actionSelectHistoryItem(_target, item.getModelObject())); textLink.setBody(rec::getTokenText); item.add(textLink); item.add(new Label(CID_RECOMMENDED_ANNOTATION, recFeatureValue)); item.add(new Label(CID_USER_ACTION, rec.getUserAction())); item.add( new LambdaAjaxLink(CID_REMOVE_RECORD, t -> actionRemoveHistoryItem(t, rec))); } };
&& record.getAnnotation().equals(aSuggestion.getLabel())) switch (record.getUserAction()) { case REJECTED: aSuggestion.hide(FLAG_REJECTED);
if (asList(ACCEPTED, CORRECTED).contains(aRecord.getUserAction())) {
if (asList(ACCEPTED, CORRECTED).contains(aRecord.getUserAction())) {