@Override protected void onChange(AjaxRequestTarget aTarget) { aTarget.addChildren(getPage(), IFeedback.class); try { updatePanel(aTarget, cCModel.getObject()); } 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()); } }
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws UIMAException, ClassNotFoundException, IOException, AnnotationException { getModelObject().toggleScriptDirection(); curationPanel.updatePanel(aTarget, curationContainer); updatePanel(curationContainer, aTarget); }
@Override protected void onChange(AjaxRequestTarget aTarget) { aTarget.addChildren(getPage(), IFeedback.class); try { updatePanel(aTarget, cCModel.getObject()); } 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()); } }
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws UIMAException, ClassNotFoundException, IOException, AnnotationException { getModelObject().toggleScriptDirection(); curationPanel.updatePanel(aTarget, curationContainer); updatePanel(curationContainer, aTarget); }
@Override protected void actionRefreshDocument(AjaxRequestTarget aTarget) { try { aTarget.add(getOrCreatePositionInfoLabel()); curationPanel.updatePanel(aTarget, curationContainer); updatePanel(curationContainer, aTarget); } catch (Exception e) { handleException(aTarget, e); } }
@Override protected void actionRefreshDocument(AjaxRequestTarget aTarget) { try { aTarget.add(getOrCreatePositionInfoLabel()); curationPanel.updatePanel(aTarget, curationContainer); updatePanel(curationContainer, aTarget); } catch (Exception e) { handleException(aTarget, e); } }
@Override public void onChange(AjaxRequestTarget aTarget) { try { // update begin/end of the curationsegment based on annotator state changes // (like sentence change in auto-scroll mode,.... aTarget.addChildren(getPage(), IFeedback.class); CurationPanel.this.updatePanel(aTarget, curationContainer); } catch (UIMAException e) { error(ExceptionUtils.getRootCause(e)); } catch (ClassNotFoundException | AnnotationException | IOException e) { error("Error: " + e.getMessage()); } } };
@Override public void onChange(AjaxRequestTarget aTarget) { try { // update begin/end of the curationsegment based on annotator state changes // (like sentence change in auto-scroll mode,.... aTarget.addChildren(getPage(), IFeedback.class); CurationPanel.this.updatePanel(aTarget, curationContainer); } catch (UIMAException e) { error(ExceptionUtils.getRootCause(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()); } } }
@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()); } } }
private void actionCompletePreferencesChange(AjaxRequestTarget aTarget) { AnnotatorState state = CurationPage.this.getModelObject(); // Re-render the whole page because the width of the sidebar may have changed aTarget.add(CurationPage.this); aTarget.add(getOrCreatePositionInfoLabel()); JCas mergeCas = null; try { aTarget.add(getFeedbackPanel()); mergeCas = curationDocumentService.readCurationCas(state.getDocument()); // The number of visible sentences may have changed - let the state recalculate // the visible sentences Sentence sentence = selectByAddr(mergeCas, Sentence.class, state.getFirstVisibleUnitAddress()); state.setFirstVisibleUnit(sentence); curationPanel.updatePanel(aTarget, curationContainer); updatePanel(curationContainer, aTarget); updateSentenceNumber(mergeCas, state.getFirstVisibleUnitAddress()); } catch (Exception e) { handleException(aTarget, e); } }
private void actionCompletePreferencesChange(AjaxRequestTarget aTarget) { AnnotatorState state = CurationPage.this.getModelObject(); // Re-render the whole page because the width of the sidebar may have changed aTarget.add(CurationPage.this); aTarget.add(getOrCreatePositionInfoLabel()); JCas mergeCas = null; try { aTarget.add(getFeedbackPanel()); mergeCas = curationDocumentService.readCurationCas(state.getDocument()); // The number of visible sentences may have changed - let the state recalculate // the visible sentences Sentence sentence = selectByAddr(mergeCas, Sentence.class, state.getFirstVisibleUnitAddress()); state.setFirstVisibleUnit(sentence); curationPanel.updatePanel(aTarget, curationContainer); updatePanel(curationContainer, aTarget); updateSentenceNumber(mergeCas, state.getFirstVisibleUnitAddress()); } catch (Exception e) { handleException(aTarget, e); } }