Package org.patternfly.component.toolbar
Class ToolbarFilterContent
java.lang.Object
org.patternfly.component.SubComponent<HTMLDivElement,ToolbarFilterContent>
org.patternfly.component.toolbar.ToolbarFilterContent
- All Implemented Interfaces:
Iterable<ToolbarItem>,ElementAttributeMethods<HTMLDivElement,,ToolbarFilterContent> ElementClassListMethods<HTMLDivElement,,ToolbarFilterContent> ElementConsumerMethods<HTMLDivElement,,ToolbarFilterContent> ElementContainerMethods<HTMLDivElement,,ToolbarFilterContent> ElementEventMethods<HTMLDivElement,,ToolbarFilterContent> ElementIdMethods<HTMLDivElement,,ToolbarFilterContent> ElementQueryMethods<HTMLDivElement>,HTMLElementAttributeMethods<HTMLDivElement,,ToolbarFilterContent> HTMLElementDataMethods<HTMLDivElement,,ToolbarFilterContent> HTMLElementStyleMethods<HTMLDivElement,,ToolbarFilterContent> HTMLElementVisibilityMethods<HTMLDivElement,,ToolbarFilterContent> IsElement<HTMLDivElement>,TypedBuilder<HTMLDivElement,,ToolbarFilterContent> HasItems<HTMLDivElement,ToolbarFilterContent, ToolbarItem>
public class ToolbarFilterContent
extends SubComponent<HTMLDivElement,ToolbarFilterContent>
implements HasItems<HTMLDivElement,ToolbarFilterContent,ToolbarItem>
-
Method Summary
Modifier and TypeMethodDescriptionadd(ToolbarGroup group) add(ToolbarItem item) addGroup(ToolbarGroup group) bindVisibility(org.patternfly.filter.Filter<T> filter) Binds a filter to the ToolbarFilterContent and sets its visibility based on whether the filter is defined or not.bindVisibility(org.patternfly.filter.Filter<T> filter, String firstAttribute, String... otherAttributes) Binds a filter to the ToolbarFilterContent and sets its visibility based on the state of specific filter attributes.voidclear()booleanbooleanisEmpty()iterator()intsize()that()static ToolbarFilterContentMethods inherited from class org.patternfly.component.SubComponent
elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 java.lang.Iterable
forEach, spliterator
-
Method Details
-
toolbarFilterContent
-
add
- Specified by:
addin interfaceHasItems<HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
addGroup
-
add
-
bindVisibility
Binds a filter to the ToolbarFilterContent and sets its visibility based on whether the filter is defined or not.- Type Parameters:
T- the type of the filter- Parameters:
filter- the filter to bind- Returns:
- the ToolbarFilterContent instance for method chaining
-
bindVisibility
public <T> ToolbarFilterContent bindVisibility(org.patternfly.filter.Filter<T> filter, String firstAttribute, String... otherAttributes) Binds a filter to the ToolbarFilterContent and sets its visibility based on the state of specific filter attributes.- Type Parameters:
T- the type of the filter- Parameters:
filter- the filter to bindfirstAttribute- the first attribute to check in the filterotherAttributes- additional attributes to check in the filter- Returns:
- the ToolbarFilterContent instance for method chaining
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLDivElement,ToolbarFilterContent>
-
iterator
- Specified by:
iteratorin interfaceIterable<ToolbarItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-