Package tripleplay.ui.util
Class Hierarchy
java.lang.Object
tripleplay.ui.util.Hierarchy
A view for the hierarchical structure of an
Element
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Iterates over the ancestors of an element. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns an object to iterate over the ancestors of this hierarchy, including the root.Applies the given operation to the root of the hierarchy and to every proper descendant.boolean
hasDescendant
(Element<?> descendant) Tests if the given element is a proper descendant contained in this hierarchy, or is the root.static Hierarchy
Create a new view of the given element.
-
Field Details
-
elem
The element that is the focus of this view.
-
-
Constructor Details
-
Hierarchy
Creates a new view focused on the given element.
-
-
Method Details
-
of
Create a new view of the given element. -
hasDescendant
Tests if the given element is a proper descendant contained in this hierarchy, or is the root. -
ancestors
Returns an object to iterate over the ancestors of this hierarchy, including the root. -
apply
Applies the given operation to the root of the hierarchy and to every proper descendant.
-