Package org.patternfly.component.typeahead
package org.patternfly.component.typeahead
Typeahead support for PatternFly Java components.
This package provides the building blocks for components that combine a text input with a menu to provide
typeahead/autocomplete behavior. The typeahead system is driven by a
RefreshStrategy that evaluates each input change and returns a
Decision:
Decision.refresh()— re-query the server immediatelyDecision.debounce(int)— re-query the server after a debounce timeoutDecision.filter()— filter existing items locally, no server callDecision.keep()— do nothing, keep the current menu state as-is
Key Classes and Interfaces
RefreshStrategy— decides what to do with a typeahead input value; use one of the static convenience factories (everyInput,structuralChange) or implement directly for custom logicDecision— the outcome of a strategy evaluationTypeahead— interface for components that provide typeahead behaviorTypeaheadController— manages typeahead input handling state and delegates between refresh, debounce, and local filter modes
Implementing Components
SingleSelectTypeahead— single-select dropdown with typeaheadMultiSelectTypeahead— multi-select dropdown with typeaheadSearchInputGroupTypeahead— inline search input with autocomplete menuFilterInputGroupTypeahead— inline filter input with autocomplete menu
- See Also:
-
ClassDescriptionThe outcome of a
RefreshStrategyevaluation.Decides what to do with a typeahead input value.Typeahead<B>Interface for components that combine a text input with a menu to provide typeahead/autocomplete behavior.Manages typeahead input handling state.