public class PivotUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.apache.pivot.wtk.Component |
findComponentByName(java.lang.String name,
org.apache.pivot.wtk.Container root)
Searches a component by name in a particular component hierarchy.
|
@Nullable public static org.apache.pivot.wtk.Component findComponentByName(@Nonnull java.lang.String name, @Nonnull org.apache.pivot.wtk.Container root)
A component must have a value for its name property if it's
to be found with this method.
This method performs a depth-first search.
name
- the value of the component's name propertyroot
- the root of the component hierarchy from where searching
searching should start