public void init(AjaxRequestTarget aTarget, CurationContainer aCC) throws UIMAException, ClassNotFoundException, IOException { commonUpdate(); suggestionViewPanel.init(aTarget, aCC, annotationSelectionByUsernameAndAddress, curationView); }
@Override public JCas getEditorCas() throws IOException { return CurationPanel.this.getEditorCas(); } };
@SuppressWarnings("unchecked") public IModel<CurationContainer> getModel() { return (IModel<CurationContainer>) getDefaultModel(); }
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); }
@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()); } } };
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws UIMAException, ClassNotFoundException, IOException, AnnotationException { getModelObject().toggleScriptDirection(); curationPanel.updatePanel(aTarget, curationContainer); updatePanel(curationContainer, aTarget); }
public void setModelObject(CurationContainer aModel) { setDefaultModelObject(aModel); }
public CurationContainer getModelObject() { return (CurationContainer) getDefaultModelObject(); }
public void setModel(IModel<CurationContainer> aModel) { setDefaultModel(aModel); }
@Override protected void populateItem(ListItem<SourceListView> item) { item.add(new SentenceLink("sentenceNumber", item.getModel())); } });
public void init(AjaxRequestTarget aTarget, CurationContainer aCC) throws UIMAException, ClassNotFoundException, IOException { commonUpdate(); suggestionViewPanel.init(aTarget, aCC, annotationSelectionByUsernameAndAddress, curationView); }
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); }
@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 JCas getEditorCas() throws IOException { return CurationPanel.this.getEditorCas(); } };
@SuppressWarnings("unchecked") public IModel<CurationContainer> getModel() { return (IModel<CurationContainer>) getDefaultModel(); }
public void setModelObject(CurationContainer aModel) { setDefaultModelObject(aModel); }
public CurationContainer getModelObject() { return (CurationContainer) getDefaultModelObject(); }
public void setModel(IModel<CurationContainer> aModel) { setDefaultModel(aModel); }
@Override protected void populateItem(ListItem<SourceListView> item) { item.add(new SentenceLink("sentenceNumber", item.getModel())); } });
@Override protected void actionRefreshDocument(AjaxRequestTarget aTarget) { try { aTarget.add(getOrCreatePositionInfoLabel()); curationPanel.updatePanel(aTarget, curationContainer); updatePanel(curationContainer, aTarget); } catch (Exception e) { handleException(aTarget, e); } }