Tabnine Logo
SourceListView
Code IndexAdd Tabnine to your IDE (free)

How to use
SourceListView
in
de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.model.SourceListView (Showing top 17 results out of 315)

origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-automation

private void setCurationSegmentBeginEnd(JCas aEditorCas)
  throws UIMAException, ClassNotFoundException, IOException
{
  AnnotatorState state = getModelObject();
  curationSegment.setBegin(state.getWindowBeginOffset());
  curationSegment.setEnd(state.getWindowEndOffset());
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

private void updateCurationView(final CurationContainer curationContainer,
    final SourceListView curationViewItem, AjaxRequestTarget aTarget, JCas jCas)
{
  Sentence currentSent = WebAnnoCasUtil.getCurrentSentence(jCas, curationViewItem.getBegin(),
      curationViewItem.getEnd());
  state.setFirstVisibleUnit(WebAnnoCasUtil.findWindowStartCenteringOnSelection(jCas,
      currentSent, curationViewItem.getBegin(), state.getProject(), state.getDocument(),
      state.getPreferences().getWindowSize()));
  curationContainer.setBratAnnotatorModel(state);
  onChange(aTarget);
}
origin: webanno/webanno

public SentenceLink(String aId, IModel<SourceListView> aModel)
{
  super(aId, aModel);
  setBody(Model.of(aModel.getObject().getSentenceNumber().toString()));
}

origin: webanno/webanno

    jCases, begin, end);
SourceListView curationSegment = new SourceListView();
curationSegment.setBegin(begin);
curationSegment.setEnd(end);
curationSegment.setSentenceNumber(segmentNumber.get(begin));
if (diff.hasDifferences() || !diff.getIncompleteConfigurationSets().isEmpty()) {
    curationSegment.setSentenceState(SentenceState.DISAGREE);
    curationSegment.setSentenceState(SentenceState.DISAGREE);
    curationSegment.setSentenceState(SentenceState.AGREE);
  curationSegment.setSentenceState(SentenceState.AGREE);
  curationSegment.getSentenceAddress().put(username,
      segmentAdress.get(username).get(begin));
origin: webanno/webanno

diff = CasDiff2.doDiffSingle(annotationService, state.getProject(), entryTypes,
    LinkCompareBehavior.LINK_ROLE_AS_LABEL, jCases,
    aCurationSegment.getCurationBegin(), aCurationSegment.getCurationEnd());
    LinkCompareBehavior.LINK_ROLE_AS_LABEL, jCases, aCurationSegment.getBegin(),
    aCurationSegment.getEnd());
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

if (curationViewItem.getSentenceNumber() == state.getFocusUnitIndex()) {
  aTag.append("class", "current", " ");
String cC = curationViewItem.getSentenceState().getValue();
if (cC != null) {
  aTag.append("class", "disagree", " ");
if (curationViewItem.getSentenceNumber() >= fSn
    && curationViewItem.getSentenceNumber() <= lSn) {
  aTag.append("class", "in-range", " ");
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

add(sidebarCell);
curationView = new SourceListView();
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

    jCases, begin, end);
SourceListView curationSegment = new SourceListView();
curationSegment.setBegin(begin);
curationSegment.setEnd(end);
curationSegment.setSentenceNumber(segmentNumber.get(begin));
if (diff.hasDifferences() || !diff.getIncompleteConfigurationSets().isEmpty()) {
    curationSegment.setSentenceState(SentenceState.DISAGREE);
    curationSegment.setSentenceState(SentenceState.DISAGREE);
    curationSegment.setSentenceState(SentenceState.AGREE);
  curationSegment.setSentenceState(SentenceState.AGREE);
  curationSegment.getSentenceAddress().put(username,
      segmentAdress.get(username).get(begin));
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

diff = CasDiff2.doDiffSingle(annotationService, state.getProject(), entryTypes,
    LinkCompareBehavior.LINK_ROLE_AS_LABEL, jCases,
    aCurationSegment.getCurationBegin(), aCurationSegment.getCurationEnd());
    LinkCompareBehavior.LINK_ROLE_AS_LABEL, jCases, aCurationSegment.getBegin(),
    aCurationSegment.getEnd());
origin: webanno/webanno

if (curationViewItem.getSentenceNumber() == state.getFocusUnitIndex()) {
  aTag.append("class", "current", " ");
String cC = curationViewItem.getSentenceState().getValue();
if (cC != null) {
  aTag.append("class", "disagree", " ");
if (curationViewItem.getSentenceNumber() >= fSn
    && curationViewItem.getSentenceNumber() <= lSn) {
  aTag.append("class", "in-range", " ");
origin: webanno/webanno

add(sidebarCell);
curationView = new SourceListView();
origin: webanno/webanno

private void setCurationSegmentBeginEnd(JCas aEditorCas)
  throws UIMAException, ClassNotFoundException, IOException
{
  AnnotatorState state = getModelObject();
  curationSegment.setBegin(state.getWindowBeginOffset());
  curationSegment.setEnd(state.getWindowEndOffset());
}
origin: webanno/webanno

private void updateCurationView(final CurationContainer curationContainer,
    final SourceListView curationViewItem, AjaxRequestTarget aTarget, JCas jCas)
{
  Sentence currentSent = WebAnnoCasUtil.getCurrentSentence(jCas, curationViewItem.getBegin(),
      curationViewItem.getEnd());
  state.setFirstVisibleUnit(WebAnnoCasUtil.findWindowStartCenteringOnSelection(jCas,
      currentSent, curationViewItem.getBegin(), state.getProject(), state.getDocument(),
      state.getPreferences().getWindowSize()));
  curationContainer.setBratAnnotatorModel(state);
  onChange(aTarget);
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

public SentenceLink(String aId, IModel<SourceListView> aModel)
{
  super(aId, aModel);
  setBody(Model.of(aModel.getObject().getSentenceNumber().toString()));
}

origin: webanno/webanno

private void setCurationSegmentBeginEnd(JCas aEditorCas)
  throws UIMAException, ClassNotFoundException, IOException
{
  AnnotatorState state = getModelObject();
  curationSegment.setBegin(state.getWindowBeginOffset());
  curationSegment.setEnd(state.getWindowEndOffset());
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

  @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());
    }
  }
}
origin: webanno/webanno

  @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());
    }
  }
}
de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.modelSourceListView

Javadoc

A model comprises of Curation Segments comprising of the begin and end of the sentences, SentenceState Sentence number

Most used methods

  • setBegin
  • setEnd
  • <init>
  • getBegin
  • getCurationBegin
  • getCurationEnd
  • getEnd
  • getSentenceAddress
  • getSentenceNumber
  • getSentenceState
  • setCurationBegin
  • setCurationEnd
  • setCurationBegin,
  • setCurationEnd,
  • setSentenceNumber,
  • setSentenceState

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JCheckBox (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now