Package org.patternfly.component.tree
Class TreeView
- All Implemented Interfaces:
Iterable<TreeViewItem>
,Attachable
,Container<HTMLElement,
,TreeView> Finder<HTMLElement>
,HasElement<HTMLElement,
,TreeView> HasHTMLElement<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) void
attach
(MutationRecord mutationRecord) void
clear()
void
detach
(MutationRecord mutationRecord) expandedIcon
(Supplier<Element> icon) guides()
Same as guides(true)guides
(boolean guides) Adds/removes modifier(guides)boolean
isEmpty()
iterator()
elemental2.promise.Promise
<Iterable<TreeViewItem>> elemental2.promise.Promise
<Iterable<TreeViewItem>> load
(TreeViewItem item) onMultiSelect
(MultiSelectHandler<TreeView, TreeViewItem> selectHandler) onSelect
(SelectHandler<TreeViewItem> selectHandler) onToggle
(ToggleHandler<TreeViewItem> toggleHandler) void
reset()
void
void
select
(TreeViewItem item) void
select
(TreeViewItem item, boolean selected) void
select
(TreeViewItem item, boolean selected, boolean fireEvent) int
size()
that()
void
toggle
(TreeViewItem item) void
toggle
(TreeViewItem item, boolean fireEvent) static TreeView
treeView()
static TreeView
treeView
(TreeViewType type) Methods inherited from class org.patternfly.component.BaseComponent
componentType, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods 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, uniqueId
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
treeView
-
treeView
-
attach
- Specified by:
attach
in interfaceAttachable
-
detach
- Specified by:
detach
in interfaceAttachable
-
add
- Specified by:
add
in interfaceHasItems<HTMLElement,
TreeView, TreeViewItem>
-
guides
Same as guides(true) -
guides
Adds/removes modifier(guides) -
icon
-
expandedIcon
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
TreeView>
-
ariaLabel
-
onToggle
-
onSelect
-
onMultiSelect
-
load
-
load
-
toggle
-
toggle
-
select
-
select
-
select
-
select
-
selectedItems
-
reset
public void reset() -
findItem
-
iterator
- Specified by:
iterator
in interfaceIterable<TreeViewItem>
-
size
public int size()- Specified by:
size
in interfaceHasItems<HTMLElement,
TreeView, TreeViewItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceHasItems<HTMLElement,
TreeView, TreeViewItem>
-
clear
public void clear()- Specified by:
clear
in interfaceHasItems<HTMLElement,
TreeView, TreeViewItem>
-