Class Decision
java.lang.Object
org.patternfly.component.typeahead.Decision
The outcome of a
RefreshStrategy evaluation. Tells the typeahead controller what to do with the current input value:
refresh()— re-query the server immediatelydebounce(int)— re-query the server after a debounce timeoutfilter()— filter existing items locally, no server callkeep()— do nothing, keep the current menu state as-is
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the action to take.static Decisiondebounce(int ms) Re-query the server after the given debounce timeout.intReturns the debounce timeout in milliseconds.static Decisionfilter()Filter existing items locally; no server call.static Decisionkeep()Do nothing; keep the current menu state as-is.static Decisionrefresh()Re-query the server immediately.
-
Method Details
-
refresh
Re-query the server immediately. -
debounce
Re-query the server after the given debounce timeout. -
filter
Filter existing items locally; no server call. -
keep
Do nothing; keep the current menu state as-is. -
action
Returns the action to take. -
debounceMs
public int debounceMs()Returns the debounce timeout in milliseconds. Only meaningful when action isDecision.Action.DEBOUNCE.
-