Class ASTTreeItem
- java.lang.Object
-
- javafx.scene.control.TreeItem<T>
-
- net.sourceforge.pmd.util.fxdesigner.util.controls.SearchableTreeView.SearchableTreeItem<net.sourceforge.pmd.lang.ast.Node>
-
- net.sourceforge.pmd.util.fxdesigner.util.controls.ASTTreeItem
-
- All Implemented Interfaces:
javafx.event.EventTarget
public final class ASTTreeItem extends SearchableTreeView.SearchableTreeItem<net.sourceforge.pmd.lang.ast.Node>
Represents a tree item (data, not UI) in the ast TreeView.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ASTTreeItemfindItem(net.sourceforge.pmd.lang.ast.Node node)Finds the tree item corresponding to the given node among the descendants of this item.static <T,N extends javafx.scene.control.TreeItem<T>>
voidforeach(N root, java.util.function.Consumer<? super N> fun)java.lang.StringgetSearchableText()voidsetStyleClasses(java.lang.String... classes)voidsetStyleClasses(java.util.Collection<java.lang.String> classes)-
Methods inherited from class net.sourceforge.pmd.util.fxdesigner.util.controls.SearchableTreeView.SearchableTreeItem
currentSearchResultProperty, getTreeIndex, treeCellProperty
-
Methods inherited from class javafx.scene.control.TreeItem
addEventHandler, branchCollapsedEvent, branchExpandedEvent, buildEventDispatchChain, childrenModificationEvent, expandedItemCountChangeEvent, expandedProperty, getChildren, getGraphic, getParent, getValue, graphicChangedEvent, graphicProperty, isExpanded, isLeaf, leafProperty, nextSibling, nextSibling, parentProperty, previousSibling, previousSibling, removeEventHandler, setExpanded, setGraphic, setValue, toString, treeNotificationEvent, valueChangedEvent, valueProperty
-
-
-
-
Method Detail
-
findItem
public ASTTreeItem findItem(net.sourceforge.pmd.lang.ast.Node node)
Finds the tree item corresponding to the given node among the descendants of this item. This method assumes this item is the root node.- Parameters:
node- The node to find- Returns:
- The found item, or null if this item doesn't wrap the root of the tree to which the parameter belongs
-
setStyleClasses
public void setStyleClasses(java.util.Collection<java.lang.String> classes)
-
setStyleClasses
public void setStyleClasses(java.lang.String... classes)
-
getSearchableText
public java.lang.String getSearchableText()
- Specified by:
getSearchableTextin classSearchableTreeView.SearchableTreeItem<net.sourceforge.pmd.lang.ast.Node>
-
foreach
public static <T,N extends javafx.scene.control.TreeItem<T>> void foreach(N root, java.util.function.Consumer<? super N> fun)
-
-