Module org.autogui
Package org.autogui.swing.table
Class GuiSwingTableColumnFilePath.SearchTextFieldModelFilePathEmpty
java.lang.Object
org.autogui.swing.util.SearchTextFieldFilePath.SearchTextFieldModelFilePath
org.autogui.swing.table.GuiSwingTableColumnFilePath.SearchTextFieldModelFilePathEmpty
- All Implemented Interfaces:
SearchTextField.SearchTextFieldModel
- Enclosing class:
GuiSwingTableColumnFilePath
public static class GuiSwingTableColumnFilePath.SearchTextFieldModelFilePathEmpty
extends SearchTextFieldFilePath.SearchTextFieldModelFilePath
a dummy editor for just rending a file-path
-
Field Summary
Fields inherited from class org.autogui.swing.util.SearchTextFieldFilePath.SearchTextFieldModelFilePath
iconSource, selection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCandidates
(String text, boolean editable, SearchTextField.SearchTextFieldPublisher publisher) the method is executed under the background thread ofSwingWorker
.boolean
Methods inherited from class org.autogui.swing.util.SearchTextFieldFilePath.SearchTextFieldModelFilePath
compare, getChildItems, getCompletionItems, getDefaultCurrent, getDefaultItems, getFileItem, getParentItems, getSelection, isFixedCategorySize, select, setSelection
-
Constructor Details
-
SearchTextFieldModelFilePathEmpty
public SearchTextFieldModelFilePathEmpty()
-
-
Method Details
-
isBackgroundTask
public boolean isBackgroundTask() -
getCandidates
public List<PopupCategorized.CategorizedMenuItem> getCandidates(String text, boolean editable, SearchTextField.SearchTextFieldPublisher publisher) Description copied from interface:SearchTextField.SearchTextFieldModel
the method is executed under the background thread ofSwingWorker
. The publisher is passed for checking cancellation and publishing intermediate result.List<CategorizedMenuItem> results = new ArrayList<>(); for (CategorizedMenuItem item : ...) { if (publisher.isSearchCancelled()) { break; } results.add(item); publisher.publishSearch(results); } return results;
Note: the method is also called by selection of a searched menu item. Then the select is already set as the same value of the text.- Specified by:
getCandidates
in interfaceSearchTextField.SearchTextFieldModel
- Overrides:
getCandidates
in classSearchTextFieldFilePath.SearchTextFieldModelFilePath
- Parameters:
text
- the input texteditable
- whether the field is editable or notpublisher
- the publisher for submitting the searched item- Returns:
- the total results of searched items
-