java.lang.Object
java.util.concurrent.FutureTask<V>
javafx.concurrent.Task<NavigableMap<Integer,Integer>>
com.iamsoft.util.ui.javafx.codearea.FindTask
All Implemented Interfaces:
Runnable, Future<NavigableMap<Integer,Integer>>, RunnableFuture<NavigableMap<Integer,Integer>>, javafx.concurrent.Worker<NavigableMap<Integer,Integer>>, javafx.event.EventTarget

public class FindTask extends javafx.concurrent.Task<NavigableMap<Integer,Integer>>
  • Property Summary

    Properties inherited from class javafx.concurrent.Task

    exception, message, onCancelled, onFailed, onRunning, onScheduled, onSucceeded, progress, running, state, title, totalWork, value, workDone
  • Nested Class Summary

    Nested classes/interfaces inherited from interface javafx.concurrent.Worker

    javafx.concurrent.Worker.State
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Object
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FindTask(org.fxmisc.richtext.TextEditingArea<?,?,?> pEditor, FindStrategy pFindStrategy)
     
    FindTask(org.fxmisc.richtext.TextEditingArea<?,?,?> pEditor, Consumer<Consumer<Document>> pDocumentProvider, FindStrategy pFindStrategy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static AtomicLong
    getSearchQueryUid(org.fxmisc.richtext.TextEditingArea<?,?,?> pEditor)
    Note that this class is NOT responsible for incrementing the search query UIDs.
    static AtomicLong
    getTextChangeUid(org.fxmisc.richtext.TextEditingArea<?,?,?> pEditor)
    Note that this class is NOT responsible for incrementing the text change UIDs.
    boolean
     

    Methods inherited from class javafx.concurrent.Task

    addEventFilter, addEventHandler, buildEventDispatchChain, cancel, cancel, cancelled, exceptionProperty, failed, fireEvent, getException, getMessage, getOnCancelled, getOnFailed, getOnRunning, getOnScheduled, getOnSucceeded, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, removeEventFilter, removeEventHandler, running, runningProperty, scheduled, setEventHandler, setOnCancelled, setOnFailed, setOnRunning, setOnScheduled, setOnSucceeded, stateProperty, succeeded, titleProperty, totalWorkProperty, updateMessage, updateProgress, updateProgress, updateTitle, updateValue, valueProperty, workDoneProperty

    Methods inherited from class java.util.concurrent.FutureTask

    done, get, get, isCancelled, isDone, run, runAndReset, set, setException, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • FIND_KEY

      protected static final Object FIND_KEY
  • Constructor Details

    • FindTask

      public FindTask(org.fxmisc.richtext.TextEditingArea<?,?,?> pEditor, FindStrategy pFindStrategy)
    • FindTask

      public FindTask(org.fxmisc.richtext.TextEditingArea<?,?,?> pEditor, Consumer<Consumer<Document>> pDocumentProvider, FindStrategy pFindStrategy)
      Parameters:
      pDocumentProvider - Since Document is not thread-safe, the provider is responsible for properly synchronizing the access to document.
  • Method Details

    • call

      protected NavigableMap<Integer,Integer> call() throws Exception
      Specified by:
      call in class javafx.concurrent.Task<NavigableMap<Integer,Integer>>
      Throws:
      Exception
    • isOutdated

      public boolean isOutdated()
    • getTextChangeUid

      public static AtomicLong getTextChangeUid(org.fxmisc.richtext.TextEditingArea<?,?,?> pEditor)
      Note that this class is NOT responsible for incrementing the text change UIDs.
    • getSearchQueryUid

      public static AtomicLong getSearchQueryUid(org.fxmisc.richtext.TextEditingArea<?,?,?> pEditor)
      Note that this class is NOT responsible for incrementing the search query UIDs.