@Override public void onClick(AjaxRequestTarget aTarget) { final SourceListView curationViewItem = getModelObject(); curationView = curationViewItem; fSn = 0; try { JCas jCas = curationDocumentService.readCurationCas(state.getDocument()); updateCurationView(CurationPanel.this.getModelObject(), curationViewItem, aTarget, jCas); updatePanel(aTarget, CurationPanel.this.getModelObject()); state.setFocusUnitIndex(curationViewItem.getSentenceNumber()); } catch (UIMAException e) { error("Error: " + ExceptionUtils.getRootCauseMessage(e)); } catch (ClassNotFoundException | AnnotationException | IOException e) { error("Error: " + e.getMessage()); } } }
@Override public void onClick(AjaxRequestTarget aTarget) { final SourceListView curationViewItem = getModelObject(); curationView = curationViewItem; fSn = 0; try { JCas jCas = curationDocumentService.readCurationCas(state.getDocument()); updateCurationView(CurationPanel.this.getModelObject(), curationViewItem, aTarget, jCas); updatePanel(aTarget, CurationPanel.this.getModelObject()); state.setFocusUnitIndex(curationViewItem.getSentenceNumber()); } catch (UIMAException e) { error("Error: " + ExceptionUtils.getRootCauseMessage(e)); } catch (ClassNotFoundException | AnnotationException | IOException e) { error("Error: " + e.getMessage()); } } }
UserAnnotationSegment userAnnotationSegments = new UserAnnotationSegment(); state = getModelObject().getAnnotatorState(); if (state != null) { userAnnotationSegments sourceListModel = sourceListModel == null ? getModelObject().getCurationViews() : sourceListModel; add(sentencesListView); sentencesListView.add(new ListView<SourceListView>("sentencesList", LoadableDetachableModel.of(() -> getModelObject().getCurationViews()))
UserAnnotationSegment userAnnotationSegments = new UserAnnotationSegment(); state = getModelObject().getAnnotatorState(); if (state != null) { userAnnotationSegments sourceListModel = sourceListModel == null ? getModelObject().getCurationViews() : sourceListModel; add(sentencesListView); sentencesListView.add(new ListView<SourceListView>("sentencesList", LoadableDetachableModel.of(() -> getModelObject().getCurationViews()))