Package org.patternfly.component.tree
Class TreeViewItem
java.lang.Object
org.patternfly.component.SubComponent<HTMLLIElement,TreeViewItem>
org.patternfly.component.tree.TreeViewItem
- All Implemented Interfaces:
Iterable<TreeViewItem>,ElementAttributeMethods<HTMLLIElement,,TreeViewItem> ElementClassListMethods<HTMLLIElement,,TreeViewItem> ElementConsumerMethods<HTMLLIElement,,TreeViewItem> ElementContainerMethods<HTMLLIElement,,TreeViewItem> ElementEventMethods<HTMLLIElement,,TreeViewItem> ElementIdMethods<HTMLLIElement,,TreeViewItem> ElementQueryMethods<HTMLLIElement>,ElementTextMethods<HTMLLIElement,,TreeViewItem> HTMLElementAttributeMethods<HTMLLIElement,,TreeViewItem> HTMLElementDataMethods<HTMLLIElement,,TreeViewItem> HTMLElementStyleMethods<HTMLLIElement,,TreeViewItem> HTMLElementVisibilityMethods<HTMLLIElement,,TreeViewItem> IsElement<HTMLLIElement>,TypedBuilder<HTMLLIElement,,TreeViewItem> ComponentIcon<HTMLLIElement,,TreeViewItem> Expandable<HTMLLIElement,,TreeViewItem> HasIdentifier<HTMLLIElement,,TreeViewItem> HasItems<HTMLLIElement,,TreeViewItem, TreeViewItem> org.patternfly.core.ComponentContext<HTMLLIElement,,TreeViewItem> org.patternfly.style.Modifiers.Compact<HTMLLIElement,,TreeViewItem> org.patternfly.style.Modifiers.Disabled<HTMLLIElement,TreeViewItem>
public class TreeViewItem
extends SubComponent<HTMLLIElement,TreeViewItem>
implements org.patternfly.style.Modifiers.Compact<HTMLLIElement,TreeViewItem>, org.patternfly.core.ComponentContext<HTMLLIElement,TreeViewItem>, ComponentIcon<HTMLLIElement,TreeViewItem>, org.patternfly.style.Modifiers.Disabled<HTMLLIElement,TreeViewItem>, ElementTextMethods<HTMLLIElement,TreeViewItem>, Expandable<HTMLLIElement,TreeViewItem>, HasIdentifier<HTMLLIElement,TreeViewItem>, HasItems<HTMLLIElement,TreeViewItem,TreeViewItem>
-
Method Summary
Modifier and TypeMethodDescriptionadd(Function<TreeViewItem, Promise<Iterable<TreeViewItem>>> items) add(TreeViewItem item) addItems(Function<TreeViewItem, Promise<Iterable<TreeViewItem>>> items) voidclear()voidcollapse(boolean fireEvent) booleandisabled(boolean disabled) voidexpand(boolean fireEvent) expandedIcon(Element icon) expandedIcon(org.patternfly.icon.PredefinedIcon icon) <T> TbooleanbooleanisEmpty()iterator()load()onToggle(org.patternfly.handler.ToggleHandler<TreeViewItem> toggleHandler) parent()reload()voidreset()booleanselected()intsize()org.patternfly.core.AsyncStatusstatus()<T> TreeViewItemtext()that()static TreeViewItemtreeViewItem(String identifier) static TreeViewItemtreeViewItem(String identifier, String text) Methods 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.patternfly.core.ComponentContext
get, getMethods 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.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods 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, spliteratorMethods inherited from interface org.patternfly.style.Modifiers.Compact
compact, compactMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
-
Method Details
-
treeViewItem
-
treeViewItem
-
add
- Specified by:
addin interfaceHasItems<HTMLLIElement,TreeViewItem, TreeViewItem>
-
addItems
-
add
-
disabled
- Specified by:
disabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLLIElement,TreeViewItem>
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLLIElement,TreeViewItem>
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLLIElement,TreeViewItem>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLLIElement,TreeViewItem>
-
expandedIcon
-
expandedIcon
-
store
- Specified by:
storein interfaceorg.patternfly.core.ComponentContext<HTMLLIElement,TreeViewItem>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLLIElement,TreeViewItem>
-
onToggle
-
identifier
- Specified by:
identifierin interfaceHasIdentifier<HTMLLIElement,TreeViewItem>
-
parent
-
selected
public boolean selected() -
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLLIElement,TreeViewItem>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLLIElement,TreeViewItem>
-
load
-
reset
public void reset() -
reload
-
status
public org.patternfly.core.AsyncStatus status() -
has
- Specified by:
hasin interfaceorg.patternfly.core.ComponentContext<HTMLLIElement,TreeViewItem>
-
get
- Specified by:
getin interfaceorg.patternfly.core.ComponentContext<HTMLLIElement,TreeViewItem>
-
iterator
- Specified by:
iteratorin interfaceIterable<TreeViewItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLLIElement,TreeViewItem, TreeViewItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLLIElement,TreeViewItem, TreeViewItem>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLLIElement,TreeViewItem, TreeViewItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLLIElement,TreeViewItem, TreeViewItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLLIElement,TreeViewItem, TreeViewItem>
-
text
- Specified by:
textin interfaceElementTextMethods<HTMLLIElement,TreeViewItem>
-