Class BaseFilterInput<T extends BaseFilterInput<T>>
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, T>
org.patternfly.component.textinputgroup.BaseTextInputGroup<T>
org.patternfly.component.textinputgroup.BaseSearchInput<T>
org.patternfly.component.textinputgroup.BaseFilterInput<T>
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, T>,ElementClassListMethods<HTMLElement, T>,ElementConsumerMethods<HTMLElement, T>,ElementContainerMethods<HTMLElement, T>,ElementEventMethods<HTMLElement, T>,ElementIdMethods<HTMLElement, T>,ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement, T>,HTMLElementDataMethods<HTMLElement, T>,HTMLElementStyleMethods<HTMLElement, T>,HTMLElementVisibilityMethods<HTMLElement, T>,IsElement<HTMLElement>,TypedBuilder<HTMLElement, T>,Component,ComponentIcon<HTMLElement, T>,HasValue<String>,Validatable<HTMLElement, T>,Modifiers.Disabled<HTMLElement, T>,Modifiers.Plain<HTMLElement, T>
- Direct Known Subclasses:
FilterInput
-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionadd(LabelGroup labelGroup) addLabelGroup(LabelGroup labelGroup) Allows duplicate entries to be added to the filter input.allowDuplicates(boolean allowDuplicates) Allows or disallows duplicate entries in the filter input.Disables the default behavior of adding an item to the label group when the Enter key is pressed.onAdd(BiConsumer<T, Label> onAdd) onEnter(ComponentHandler<T> onEnter) onRemove(BiConsumer<T, Label> onRemove) showLabelGroupIf(BiFunction<T, String, Boolean> visibility) textToIdentifier(Function<String, String> textToIdentifier) textToLabel(Function<String, Label> textToLabel) Same as value(value, false)Methods inherited from class org.patternfly.component.textinputgroup.BaseSearchInput
noDefaultOnClear, onClear, showUtilitiesIfMethods inherited from class org.patternfly.component.textinputgroup.BaseTextInputGroup
add, addUtilities, applyTo, disabled, icon, input, onChange, onKeyup, placeholder, removeIcon, resetValidation, utilities, validated, valueMethods inherited from class org.patternfly.component.BaseComponent
componentType, element, registerComponentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.component.ComponentIcon
iconMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.Plain
plain, plainMethods inherited from interface org.jboss.elemento.TypedBuilder
that
-
Field Details
-
DEFAULT_TEXT_TO_IDENTIFIER
-
DEFAULT_TEXT_TO_LABEL
-
-
Method Details
-
addLabelGroup
-
add
-
allowDuplicates
Allows duplicate entries to be added to the filter input. This method enables duplicates by delegating to theallowDuplicates(boolean)method with a default value oftrue.The flag only applies if the default add-on-enter has not been disabled using
noAddOnEnter().- Returns:
- This instance with duplicate entries enabled, allowing method chaining.
-
allowDuplicates
Allows or disallows duplicate entries in the filter input.The flag only applies if the default add-on-enter has not been disabled using
noAddOnEnter().- Parameters:
allowDuplicates- A boolean flag indicating whether duplicate entries should be allowed. Iftrue, duplicates are permitted; otherwise, they are rejected.- Returns:
- This instance with the duplicate entry behavior updated, allowing method chaining.
-
noAddOnEnter
Disables the default behavior of adding an item to the label group when the Enter key is pressed. You can add a custom enter-handler usingonEnter(ComponentHandler).The default behavior is to turn the entered text into a label and add it to the label group using the
textToIdentifier()andtextToLabel()functions.- Returns:
- This instance with the "add on Enter" functionality disabled, allowing method chaining.
-
textToIdentifier
-
textToLabel
-
showLabelGroupIf
-
onAdd
-
onRemove
-
onEnter
-
labelGroup
-
textToIdentifier
-
textToLabel
-
value
Description copied from class:BaseTextInputGroupSame as value(value, false)- Overrides:
valuein classBaseSearchInput<T extends BaseFilterInput<T>>
-
value
- Overrides:
valuein classBaseSearchInput<T extends BaseFilterInput<T>>
-