java.lang.Object
javax.swing.AbstractAction
org.autogui.swing.util.SearchTextField.DynamicItemAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Enclosing class:
SearchTextField
an action for searching, filtering and selecting items
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Supplier<List<PopupCategorized.CategorizedMenuItem>> protected Predicate<PopupCategorized.CategorizedMenuItem> protected KeyStrokeprotected Consumer<PopupCategorized.CategorizedMenuItem> Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
ConstructorsConstructorDescriptionDynamicItemAction(Supplier<List<PopupCategorized.CategorizedMenuItem>> currentSearchedItems, Consumer<PopupCategorized.CategorizedMenuItem> selector, String name, KeyStroke key) DynamicItemAction(Supplier<List<PopupCategorized.CategorizedMenuItem>> currentSearchedItems, Consumer<PopupCategorized.CategorizedMenuItem> selector, Predicate<PopupCategorized.CategorizedMenuItem> filter, String name, KeyStroke key) -
Method Summary
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
currentSearchedItems
-
filter
-
selector
-
key
-
-
Constructor Details
-
DynamicItemAction
public DynamicItemAction(Supplier<List<PopupCategorized.CategorizedMenuItem>> currentSearchedItems, Consumer<PopupCategorized.CategorizedMenuItem> selector, String name, KeyStroke key) -
DynamicItemAction
public DynamicItemAction(Supplier<List<PopupCategorized.CategorizedMenuItem>> currentSearchedItems, Consumer<PopupCategorized.CategorizedMenuItem> selector, Predicate<PopupCategorized.CategorizedMenuItem> filter, String name, KeyStroke key)
-
-
Method Details
-
actionPerformed
-
putTo
-