private List<String> invisibleCrossSentenceAnnotations() { int fSN = state.getFirstVisibleUnitIndex(); int lSN = state.getLastVisibleUnitIndex(); List<String> crossSentAnnos = new ArrayList<>(); if (SuggestionBuilder.crossSentenceLists != null) { for (int sn : SuggestionBuilder.crossSentenceLists.keySet()) { if (sn >= fSN && sn <= lSN) { List<Integer> cr = new ArrayList<>(); for (int c : SuggestionBuilder.crossSentenceLists.get(sn)) { if (c < fSN || c > lSN) { cr.add(c); } } if (!cr.isEmpty()) { crossSentAnnos.add(sn + "-->" + cr); } } } } return crossSentAnnos; }
private List<String> invisibleCrossSentenceAnnotations() { int fSN = state.getFirstVisibleUnitIndex(); int lSN = state.getLastVisibleUnitIndex(); List<String> crossSentAnnos = new ArrayList<>(); if (SuggestionBuilder.crossSentenceLists != null) { for (int sn : SuggestionBuilder.crossSentenceLists.keySet()) { if (sn >= fSN && sn <= lSN) { List<Integer> cr = new ArrayList<>(); for (int c : SuggestionBuilder.crossSentenceLists.get(sn)) { if (c < fSN || c > lSN) { cr.add(c); } } if (!cr.isEmpty()) { crossSentAnnos.add(sn + "-->" + cr); } } } } return crossSentAnnos; }
private void updatePanel(CurationContainer aCurationContainer, AjaxRequestTarget aTarget) { AnnotatorState state = getModelObject(); gotoPageTextField.setModelObject(state.getFirstVisibleUnitIndex()); curationPanel.setDefaultModelObject(curationContainer); aTarget.add(gotoPageTextField); }
private void updatePanel(CurationContainer aCurationContainer, AjaxRequestTarget aTarget) { AnnotatorState state = getModelObject(); gotoPageTextField.setModelObject(state.getFirstVisibleUnitIndex()); curationPanel.setDefaultModelObject(curationContainer); aTarget.add(gotoPageTextField); }
private void update(AjaxRequestTarget target) throws UIMAException, ClassNotFoundException, IOException, AnnotationException { suggestionView.updatePanel(target, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); gotoPageTextField.setModelObject(getModelObject().getFirstVisibleUnitIndex()); target.add(gotoPageTextField); target.add(getOrCreatePositionInfoLabel()); }
private void update(AjaxRequestTarget target) throws UIMAException, ClassNotFoundException, IOException, AnnotationException { suggestionView.updatePanel(target, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); gotoPageTextField.setModelObject(getModelObject().getFirstVisibleUnitIndex()); target.add(gotoPageTextField); target.add(getOrCreatePositionInfoLabel()); }
private void update(AjaxRequestTarget target) throws UIMAException, ClassNotFoundException, IOException, AnnotationException { suggestionView.updatePanel(target, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); gotoPageTextField.setModelObject(getModelObject().getFirstVisibleUnitIndex()); target.add(gotoPageTextField); target.add(getOrCreatePositionInfoLabel()); }
@Override public void actionRefreshDocument(AjaxRequestTarget aTarget) { gotoPageTextField.setModelObject(getModelObject().getFirstVisibleUnitIndex()); try { annotationEditor.requestRender(aTarget); } catch (Exception e) { LOG.warn("Editor refresh requested at illegal time, forcing page refresh", new RuntimeException()); throw new RestartResponseException(getPage()); } aTarget.add(gotoPageTextField); aTarget.add(getOrCreatePositionInfoLabel()); aTarget.addChildren(getPage(), IFeedback.class); // Update URL for current document updateUrlFragment(aTarget); }
int windowEnd = aState.getWindowEndOffset(); aResponse.setSentenceNumberOffset(aState.getFirstVisibleUnitIndex());
int windowEnd = aState.getWindowEndOffset(); aResponse.setSentenceNumberOffset(aState.getFirstVisibleUnitIndex());
gotoPageTextField.setModelObject(getModelObject().getFirstVisibleUnitIndex());
gotoPageTextField.setModelObject(getModelObject().getFirstVisibleUnitIndex());
gotoPageTextField.setModelObject(getModelObject().getFirstVisibleUnitIndex()); + "] f:[" + state.getFirstVisibleUnitIndex() + "] l:[" + state.getLastVisibleUnitIndex() + "] s:[" + state.getFocusUnitIndex() + "]");
+ state.getFirstVisibleUnitIndex() + "] l:[" + state.getLastVisibleUnitIndex() + "] s:[" + state.getFocusUnitIndex() + "]");
+ state.getFirstVisibleUnitIndex() + "] l:[" + state.getLastVisibleUnitIndex() + "] s:[" + state.getFocusUnitIndex() + "]");
+ state.getFirstVisibleUnitIndex() + "] l:[" + state.getLastVisibleUnitIndex() + "] s:[" + state.getFocusUnitIndex() + "]");