Package org.patternfly.component.toolbar
Class ToolbarFilterContent
java.lang.Object
org.patternfly.component.SubComponent<E,B>
org.patternfly.component.toolbar.ToolbarFilterContent
- All Implemented Interfaces:
Iterable<ToolbarItem>,Container<elemental2.dom.HTMLDivElement,,ToolbarFilterContent> Finder<elemental2.dom.HTMLDivElement>,HasElement<elemental2.dom.HTMLDivElement,,ToolbarFilterContent> HasHTMLElement<elemental2.dom.HTMLDivElement,,ToolbarFilterContent> IsElement<elemental2.dom.HTMLDivElement>,TypedBuilder<elemental2.dom.HTMLDivElement,,ToolbarFilterContent> HasItems<elemental2.dom.HTMLDivElement,ToolbarFilterContent, ToolbarItem>
public class ToolbarFilterContent
extends SubComponent<E,B>
implements HasItems<elemental2.dom.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.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
toolbarFilterContent
-
add
- Specified by:
addin interfaceHasItems<elemental2.dom.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<elemental2.dom.HTMLDivElement,ToolbarFilterContent>
-
iterator
- Specified by:
iteratorin interfaceIterable<ToolbarItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<elemental2.dom.HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<elemental2.dom.HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
contains
- Specified by:
containsin interfaceHasItems<elemental2.dom.HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
item
- Specified by:
itemin interfaceHasItems<elemental2.dom.HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<elemental2.dom.HTMLDivElement,ToolbarFilterContent, ToolbarItem>
-