Esempio n. 1
0
 @Override
 public void onOutputUpdateAll(Paragraph paragraph, List<InterpreterResultMessage> msgs) {
   if (jobListenerFactory != null) {
     ParagraphJobListener listener = jobListenerFactory.getParagraphJobListener(this);
     if (listener != null) {
       listener.onOutputUpdateAll(paragraph, msgs);
     }
   }
 }
Esempio n. 2
0
 @Override
 public void onOutputUpdate(Paragraph paragraph, int idx, InterpreterResultMessage msg) {
   if (jobListenerFactory != null) {
     ParagraphJobListener listener = jobListenerFactory.getParagraphJobListener(this);
     if (listener != null) {
       listener.onOutputUpdate(paragraph, idx, msg);
     }
   }
 }
Esempio n. 3
0
 @Override
 public void onOutputAppend(Paragraph paragraph, int idx, String output) {
   if (jobListenerFactory != null) {
     ParagraphJobListener listener = jobListenerFactory.getParagraphJobListener(this);
     if (listener != null) {
       listener.onOutputAppend(paragraph, idx, output);
     }
   }
 }
Esempio n. 4
0
 @Override
 public void onProgressUpdate(Job job, int progress) {
   if (jobListenerFactory != null) {
     ParagraphJobListener listener = jobListenerFactory.getParagraphJobListener(this);
     if (listener != null) {
       listener.onProgressUpdate(job, progress);
     }
   }
 }
Esempio n. 5
0
 @Override
 public void beforeStatusChange(Job job, Status before, Status after) {
   if (jobListenerFactory != null) {
     ParagraphJobListener listener = jobListenerFactory.getParagraphJobListener(this);
     if (listener != null) {
       listener.beforeStatusChange(job, before, after);
     }
   }
 }
Esempio n. 6
0
  @Override
  public void afterStatusChange(Job job, Status before, Status after) {
    if (jobListenerFactory != null) {
      ParagraphJobListener listener = jobListenerFactory.getParagraphJobListener(this);
      if (listener != null) {
        listener.afterStatusChange(job, before, after);
      }
    }

    if (noteEventListener != null) {
      noteEventListener.onParagraphStatusChange((Paragraph) job, after);
    }
  }