Package org.patternfly.component.tree
Class TreeView
- All Implemented Interfaces:
Iterable<TreeViewItem>,Attachable,ElementAttributeMethods<HTMLElement,,TreeView> ElementClassListMethods<HTMLElement,,TreeView> ElementConsumerMethods<HTMLElement,,TreeView> ElementContainerMethods<HTMLElement,,TreeView> ElementEventMethods<HTMLElement,,TreeView> ElementIdMethods<HTMLElement,,TreeView> ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement,,TreeView> HTMLElementDataMethods<HTMLElement,,TreeView> HTMLElementStyleMethods<HTMLElement,,TreeView> HTMLElementVisibilityMethods<HTMLElement,,TreeView> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,TreeView> Component,HasItems<HTMLElement,TreeView, TreeViewItem>
public class TreeView
extends BaseComponent<HTMLElement,TreeView>
implements HasItems<HTMLElement,TreeView,TreeViewItem>, Attachable
A tree view is a structure that displays data in a hierarchical view. It can be used in a
dropdown, drawer,
primary-detail, modal, or
wizard.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(TreeViewItem item) voidattach(MutationRecord mutationRecord) voidclear()voidcollapse()booleanvoiddetach(MutationRecord mutationRecord) expandedIcon(Supplier<Element> icon) guides()Same as guides(true)guides(boolean guides) Adds/removes modifier(guides)booleanisEmpty()iterator()load(TreeViewItem item) onMultiSelect(org.patternfly.handler.MultiSelectHandler<TreeView, TreeViewItem> selectHandler) onSelect(org.patternfly.handler.SelectHandler<TreeViewItem> selectHandler) onToggle(org.patternfly.handler.ToggleHandler<TreeViewItem> toggleHandler) voidreset()voidvoidselect(TreeViewItem item) voidselect(TreeViewItem item, boolean selected) voidselect(TreeViewItem item, boolean selected, boolean fireEvent) intsize()that()voidtoggle(TreeViewItem item) voidtoggle(TreeViewItem item, boolean fireEvent) static TreeViewtreeView()static TreeViewtreeView(TreeViewType type) voidunselect()voidunselect(boolean fireEvent) Methods inherited from class org.patternfly.component.BaseComponent
componentType, 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
-
treeView
-
treeView
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
add
- Specified by:
addin interfaceHasItems<HTMLElement,TreeView, TreeViewItem>
-
guides
Same as guides(true) -
guides
Adds/removes modifier(guides) -
icon
-
expandedIcon
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,TreeView>
-
ariaLabel
-
onToggle
-
onSelect
-
onMultiSelect
public TreeView onMultiSelect(org.patternfly.handler.MultiSelectHandler<TreeView, TreeViewItem> selectHandler) -
load
-
load
-
toggle
-
toggle
-
select
-
select
-
select
-
select
-
selectedItems
-
unselect
public void unselect() -
unselect
public void unselect(boolean fireEvent) -
collapse
public void collapse() -
reset
public void reset() -
findItem
-
iterator
- Specified by:
iteratorin interfaceIterable<TreeViewItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement,TreeView, TreeViewItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement,TreeView, TreeViewItem>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLElement,TreeView, TreeViewItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLElement,TreeView, TreeViewItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement,TreeView, TreeViewItem>
-