public class PivotUtils extends Object
Constructor and Description |
---|
PivotUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.pivot.wtk.Component |
findComponentByName(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 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