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
,ApplicationComponent
public final class ASTTreeItem extends SearchableTreeView.SearchableTreeItem<net.sourceforge.pmd.lang.ast.Node> implements ApplicationComponent
Represents a tree item (data, not UI) in the ast TreeView.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javafx.scene.control.TreeItem
javafx.scene.control.TreeItem.TreeModificationEvent<T extends Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ASTTreeItem
findItem(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, Consumer<? super N> fun)
DesignerRoot
getDesignerRoot()
String
getSearchableText()
Text used to match search queries.void
setStyleClasses(String... classes)
void
setStyleClasses(Collection<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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.app.ApplicationComponent
getDebugName, getLogCategory, getLogger, getMainStage, getService, globalLanguageProperty, isDeveloperMode, languageBindingsProperty, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
-
-
-
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(Collection<String> classes)
-
setStyleClasses
public void setStyleClasses(String... classes)
-
getSearchableText
public String getSearchableText()
Description copied from class:SearchableTreeView.SearchableTreeItem
Text used to match search queries. This must be the same text as is displayed on the cell in normal mode.- Specified by:
getSearchableText
in classSearchableTreeView.SearchableTreeItem<net.sourceforge.pmd.lang.ast.Node>
-
getDesignerRoot
public DesignerRoot getDesignerRoot()
- Specified by:
getDesignerRoot
in interfaceApplicationComponent
-
foreach
public static <T,N extends javafx.scene.control.TreeItem<T>> void foreach(N root, Consumer<? super N> fun)
-
-