public void updatePanel(AjaxRequestTarget aTarget, CurationContainer aCC) throws UIMAException, ClassNotFoundException, IOException, AnnotationException { commonUpdate(); // Render the main annotation editor (upper part) annotationEditor.requestRender(aTarget); // Render the user annotation segments (lower part) suggestionViewPanel.updatePanel(aTarget, aCC, annotationSelectionByUsernameAndAddress, curationView); // Render the sentence list sidebar aTarget.add(sentencesListView); }
public void updatePanel(AjaxRequestTarget aTarget, CurationContainer aCC) throws UIMAException, ClassNotFoundException, IOException, AnnotationException { commonUpdate(); // Render the main annotation editor (upper part) annotationEditor.requestRender(aTarget); // Render the user annotation segments (lower part) suggestionViewPanel.updatePanel(aTarget, aCC, annotationSelectionByUsernameAndAddress, curationView); // Render the sentence list sidebar aTarget.add(sentencesListView); }
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws Exception { getModelObject().toggleScriptDirection(); annotationEditor.requestRender(aTarget); curationContainer.setBratAnnotatorModel(getModelObject()); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); }
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws Exception { getModelObject().toggleScriptDirection(); annotationEditor.requestRender(aTarget); curationContainer.setBratAnnotatorModel(getModelObject()); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); }
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws Exception { getModelObject().toggleScriptDirection(); annotationEditor.requestRender(aTarget); curationContainer.setBratAnnotatorModel(getModelObject()); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); }
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 onChange(AjaxRequestTarget aTarget) { AnnotatorState state = CorrectionPage.this.getModelObject(); aTarget.addChildren(getPage(), IFeedback.class); try { // update begin/end of the curation segment based on bratAnnotatorModel changes // (like sentence change in auto-scroll mode,.... curationContainer.setBratAnnotatorModel(state); JCas editorCas = getEditorCas(); setCurationSegmentBeginEnd(editorCas); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); annotationEditor.requestRender(aTarget); aTarget.add(getOrCreatePositionInfoLabel()); update(aTarget); } catch (UIMAException e) { LOG.error("Error: " + e.getMessage(), e); error("Error: " + ExceptionUtils.getRootCauseMessage(e)); } catch (Exception e) { LOG.error("Error: " + e.getMessage(), e); error("Error: " + e.getMessage()); } } };
@Override public void onChange(AjaxRequestTarget aTarget) { try { // update begin/end of the curation segment based on bratAnnotatorModel changes // (like sentence change in auto-scroll mode,.... aTarget.addChildren(getPage(), IFeedback.class); AnnotatorState state = AutomationPage.this.getModelObject(); curationContainer.setBratAnnotatorModel(state); JCas editorCas = getEditorCas(); setCurationSegmentBeginEnd(editorCas); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); annotationEditor.requestRender(aTarget); aTarget.add(getOrCreatePositionInfoLabel()); update(aTarget); } catch (Exception e) { handleException(aTarget, e); } } };
@Override public void onChange(AjaxRequestTarget aTarget) { try { // update begin/end of the curation segment based on bratAnnotatorModel changes // (like sentence change in auto-scroll mode,.... aTarget.addChildren(getPage(), IFeedback.class); AnnotatorState state = AutomationPage.this.getModelObject(); curationContainer.setBratAnnotatorModel(state); JCas editorCas = getEditorCas(); setCurationSegmentBeginEnd(editorCas); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); annotationEditor.requestRender(aTarget); aTarget.add(getOrCreatePositionInfoLabel()); update(aTarget); } catch (Exception e) { handleException(aTarget, e); } } };
curationContainer.setBratAnnotatorModel(state); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment);
curationContainer.setBratAnnotatorModel(state); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment);