java.lang.Object
javax.swing.SwingWorker<List<PopupCategorized.CategorizedMenuItem>,List<PopupCategorized.CategorizedMenuItem>>
org.autogui.swing.util.SearchTextField.SearchTask
- All Implemented Interfaces:
Runnable
,Future<List<PopupCategorized.CategorizedMenuItem>>
,RunnableFuture<List<PopupCategorized.CategorizedMenuItem>>
,SearchTextField.SearchTextFieldPublisher
- Enclosing class:
SearchTextField
public static class SearchTextField.SearchTask
extends SwingWorker<List<PopupCategorized.CategorizedMenuItem>,List<PopupCategorized.CategorizedMenuItem>>
implements SearchTextField.SearchTextFieldPublisher
the background searching task
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<PopupCategorized.CategorizedMenuItem> protected void
done()
getText()
boolean
protected void
process
(List<List<PopupCategorized.CategorizedMenuItem>> chunks) void
publishSearch
(List<PopupCategorized.CategorizedMenuItem> intermediateResult) Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Field Details
-
field
-
text
-
-
Constructor Details
-
SearchTask
-
-
Method Details
-
getText
-
doInBackground
- Specified by:
doInBackground
in classSwingWorker<List<PopupCategorized.CategorizedMenuItem>,
List<PopupCategorized.CategorizedMenuItem>>
-
process
- Overrides:
process
in classSwingWorker<List<PopupCategorized.CategorizedMenuItem>,
List<PopupCategorized.CategorizedMenuItem>>
-
done
protected void done()- Overrides:
done
in classSwingWorker<List<PopupCategorized.CategorizedMenuItem>,
List<PopupCategorized.CategorizedMenuItem>>
-
isSearchCancelled
public boolean isSearchCancelled()- Specified by:
isSearchCancelled
in interfaceSearchTextField.SearchTextFieldPublisher
-
publishSearch
- Specified by:
publishSearch
in interfaceSearchTextField.SearchTextFieldPublisher
-