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>
,Container<HTMLLIElement,
,TreeViewItem> Finder<HTMLLIElement>
,HasElement<HTMLLIElement,
,TreeViewItem> HasHTMLElement<HTMLLIElement,
,TreeViewItem> IsElement<HTMLLIElement>
,TypedBuilder<HTMLLIElement,
,TreeViewItem> Expandable<HTMLLIElement,
,TreeViewItem> HasItems<HTMLLIElement,
,TreeViewItem, TreeViewItem> WithIcon<HTMLLIElement,
,TreeViewItem> WithIdentifier<HTMLLIElement,
,TreeViewItem> WithText<HTMLLIElement,
,TreeViewItem> ComponentContext<HTMLLIElement,
,TreeViewItem> Modifiers.Compact<HTMLLIElement,
,TreeViewItem> Modifiers.Disabled<HTMLLIElement,
TreeViewItem>
public class TreeViewItem
extends SubComponent<HTMLLIElement,TreeViewItem>
implements ComponentContext<HTMLLIElement,TreeViewItem>, Modifiers.Compact<HTMLLIElement,TreeViewItem>, Modifiers.Disabled<HTMLLIElement,TreeViewItem>, Expandable<HTMLLIElement,TreeViewItem>, HasItems<HTMLLIElement,TreeViewItem,TreeViewItem>, WithIdentifier<HTMLLIElement,TreeViewItem>, WithIcon<HTMLLIElement,TreeViewItem>, WithText<HTMLLIElement,TreeViewItem>
-
Method Summary
Modifier and TypeMethodDescriptionadd
(Function<TreeViewItem, elemental2.promise.Promise<Iterable<TreeViewItem>>> items) add
(TreeViewItem item) addItems
(Function<TreeViewItem, elemental2.promise.Promise<Iterable<TreeViewItem>>> items) void
clear()
void
collapse
(boolean fireEvent) disabled
(boolean disabled) void
expand
(boolean fireEvent) expandedIcon
(Element icon) expandedIcon
(PredefinedIcon icon) <T> T
boolean
boolean
isEmpty()
iterator()
elemental2.promise.Promise
<Iterable<TreeViewItem>> load()
onToggle
(ToggleHandler<TreeViewItem> toggleHandler) void
reset()
boolean
selected()
int
size()
status()
<T> TreeViewItem
text()
that()
static TreeViewItem
treeViewItem
(String identifier) static TreeViewItem
treeViewItem
(String identifier, String text) Methods inherited from class org.patternfly.component.SubComponent
element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.patternfly.core.ComponentContext
get, get
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods inherited from interface org.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggle
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
Methods inherited from interface org.patternfly.style.Modifiers.Compact
compact, compact
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
-
Method Details
-
treeViewItem
-
treeViewItem
-
add
- Specified by:
add
in interfaceHasItems<HTMLLIElement,
TreeViewItem, TreeViewItem>
-
addItems
public TreeViewItem addItems(Function<TreeViewItem, elemental2.promise.Promise<Iterable<TreeViewItem>>> items) -
add
public TreeViewItem add(Function<TreeViewItem, elemental2.promise.Promise<Iterable<TreeViewItem>>> items) -
disabled
- Specified by:
disabled
in interfaceModifiers.Disabled<HTMLLIElement,
TreeViewItem>
-
text
- Specified by:
text
in interfaceWithText<HTMLLIElement,
TreeViewItem>
-
text
- Specified by:
text
in interfaceWithText<HTMLLIElement,
TreeViewItem>
-
icon
- Specified by:
icon
in interfaceWithIcon<HTMLLIElement,
TreeViewItem>
-
removeIcon
- Specified by:
removeIcon
in interfaceWithIcon<HTMLLIElement,
TreeViewItem>
-
expandedIcon
-
expandedIcon
-
store
- Specified by:
store
in interfaceComponentContext<HTMLLIElement,
TreeViewItem>
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLLIElement,
TreeViewItem>
-
onToggle
-
identifier
- Specified by:
identifier
in interfaceWithIdentifier<HTMLLIElement,
TreeViewItem>
-
selected
public boolean selected() -
collapse
public void collapse(boolean fireEvent) - Specified by:
collapse
in interfaceExpandable<HTMLLIElement,
TreeViewItem>
-
expand
public void expand(boolean fireEvent) - Specified by:
expand
in interfaceExpandable<HTMLLIElement,
TreeViewItem>
-
load
-
reset
public void reset() -
status
-
has
- Specified by:
has
in interfaceComponentContext<HTMLLIElement,
TreeViewItem>
-
get
- Specified by:
get
in interfaceComponentContext<HTMLLIElement,
TreeViewItem>
-
iterator
- Specified by:
iterator
in interfaceIterable<TreeViewItem>
-
size
public int size()- Specified by:
size
in interfaceHasItems<HTMLLIElement,
TreeViewItem, TreeViewItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceHasItems<HTMLLIElement,
TreeViewItem, TreeViewItem>
-
clear
public void clear()- Specified by:
clear
in interfaceHasItems<HTMLLIElement,
TreeViewItem, TreeViewItem>
-