Module is.codion.swing.common.ui
Class Ancestor.AncestorSupplier<T>
java.lang.Object
is.codion.swing.common.ui.ancestor.Ancestor.AncestorSupplier<T>
- Direct Known Subclasses:
Ancestor.WindowSupplier
- Enclosing class:
Ancestor
Provides ancestor of a given type of component
-
Method Summary
-
Method Details
-
get
Finds the first component of the required type in the ancestor hierarchy.- Returns:
- the ancestor the given type, null if none is found
-
optional
Finds the first component of the required type in the ancestor hierarchy.- Returns:
- the ancestor of the required type, or an empty
Optionalif none is found
-